From 62c8b643709bcd6ee2f24d5bf382e06713d7238a Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Fri, 12 Sep 2014 12:46:09 +0530 Subject: [PATCH] Fix: Error in checking disabled clients which made new clients impossible --- brewman/views/services/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/views/services/login.py b/brewman/views/services/login.py index 215aa8f4..df32f165 100644 --- a/brewman/views/services/login.py +++ b/brewman/views/services/login.py @@ -74,7 +74,7 @@ def check_client(client, otp, client_name, user): if client.enabled or outside_login_allowed: return True, client, None - if not client.otp is None: + if client.otp is None: response = Response("Client is Forbidden") response.status_int = 403 return False, None, response