Merge pull request #5838 from rohitwaghchaure/not_able_to_login

[Fix] Not able to login
This commit is contained in:
Saurabh 2018-07-19 10:10:16 +05:30 committed by GitHub
commit bff5e1126a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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