From 53154c39710232fbe8786f9763c464f8577d4676 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 19 Jul 2018 09:44:24 +0530 Subject: [PATCH] [Fix] Not able to login --- frappe/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/auth.py b/frappe/auth.py index 629f27ac69..a0ad22911a 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -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