diff --git a/frappe/auth.py b/frappe/auth.py index 3321784ce2..f1cdac52bd 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -307,7 +307,7 @@ class LoginManager: current_hour = int(now_datetime().strftime("%H")) - if login_before and current_hour > login_before: + if login_before and current_hour >= login_before: frappe.throw(_("Login not allowed at this time"), frappe.AuthenticationError) if login_after and current_hour < login_after: