1
0
mirror of synced 2024-11-23 22:10:59 +01:00

Fix crash on attempted exploit of API server.

This commit is contained in:
Jennifer Taylor 2024-05-11 18:36:52 +00:00
parent d4ce00a5fc
commit 98b9f097d0

View File

@ -46,7 +46,7 @@ def before_request() -> None:
authtype = None
authtoken = None
if authtype.lower() == "token":
if authtype is not None and authtoken is not None and authtype.lower() == "token":
g.authorized = g.data.local.api.validate_client(authtoken)