We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d95c82 commit ccd9958Copy full SHA for ccd9958
logic/authentication.py
@@ -71,18 +71,12 @@ def authenticate_account(user_data: dict) -> dict:
71
72
response = json.loads(response.decode())
73
74
- required_keys = ["status", "user_id", "token"]
+ required_keys = ["user_id", "token"]
75
missing = [k for k in required_keys if k not in response]
76
77
if missing:
78
raise ValueError("Server gave a malformed response! Are you sure this is Coldwire server ?")
79
80
- if response["status"] != "success":
81
- if "error" in response:
82
- raise ValueError(response["error"])
83
- else:
84
- raise ValueError("Server gave an unknown error")
85
-
86
user_data["user_id"] = response["user_id"]
87
user_data["token"] = response["token"]
88
0 commit comments