Fixed bug when checking for active tokens
This commit is contained in:
@@ -81,7 +81,7 @@ def find_token_in_active_clients(target_token: str) -> bool:
|
|||||||
True if the token is found in any ActiveClient, False otherwise.
|
True if the token is found in any ActiveClient, False otherwise.
|
||||||
"""
|
"""
|
||||||
for client_id in current_app.active_clients:
|
for client_id in current_app.active_clients:
|
||||||
if current_app.active_clients[client_id].active_token == target_token:
|
if current_app.active_clients[client_id].active_token.token == target_token:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user