Fix: Error in checking disabled clients which made new clients impossible

This commit is contained in:
Amritanshu 2014-09-12 12:46:09 +05:30
parent fe811d9887
commit 62c8b64370

View File

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