Fix: Error in checking disabled clients which made new clients impossible
This commit is contained in:
parent
fe811d9887
commit
62c8b64370
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user