I can register, login, and logout
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user