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
1 changed files with 1 additions and 1 deletions

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