Merge pull request #5838 from rohitwaghchaure/not_able_to_login
[Fix] Not able to login
This commit is contained in:
commit
bff5e1126a
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ class LoginManager:
|
|||
def check_if_enabled(self, user):
|
||||
"""raise exception if user not enabled"""
|
||||
doc = frappe.get_doc("System Settings")
|
||||
if doc.allow_consecutive_login_attempts > 0:
|
||||
if cint(doc.allow_consecutive_login_attempts) > 0:
|
||||
check_consecutive_login_attempts(user, doc)
|
||||
|
||||
if user=='Administrator': return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue