I can register, login, and logout

This commit is contained in:
2025-10-27 22:17:21 +01:00
parent 3f3e3a6ae5
commit 96c26d0ead
3 changed files with 64 additions and 12 deletions
+2 -2
View File
@@ -216,11 +216,11 @@ def register_user(email: str, username: str, password: str) -> Optional[Dict[str
timeout=10.0
)
if response.status_code == 200:
if response.status_code in (200, 201):
return response.json()
return None
except httpx.HTTPError:
except httpx.HTTPError as ex:
return None