This commit is contained in:
2024-02-23 12:00:07 +00:00
parent 75f45d9365
commit f5bce7d7ff
10 changed files with 52 additions and 15 deletions
+3
View File
@@ -33,6 +33,9 @@ def authorize_request() -> Optional[Tuple[str, int]]:
if g.user.disabled:
return jsonify(error="Disabled account"), 403
if not g.user.is_active():
return jsonify(error="Account does not exist"), 401
g.api_key = api_key
return None