We Intend to allow users to login only during there shift

We Intend that the employees can login only during their shift time, I intend to write a script to fetch the time from shift type and then update the Login After and Login Before from user but I am open to any method of doing it.

This is already there on user doctype?

I want it to update automatically as a new shift is assigned.

You can Write a server script to change login after/before in user doctype when shift assigned to user

1 Like