Fix a bug

Fix a bug that the high version of ios client cannot log in.
This commit is contained in:
Lost-MSth
2022-01-27 19:26:13 +08:00
parent 5bc9b9a3dc
commit ceebba4664
2 changed files with 6 additions and 5 deletions

View File

@@ -163,10 +163,10 @@ def login():
else:
device_id = 'low_version'
token, error_code, extra = server.auth.arc_login(
token, user_id, error_code, extra = server.auth.arc_login(
name, password, device_id, request.remote_addr)
if not error_code:
r = {"success": True, "token_type": "Bearer"}
r = {"success": True, "token_type": "Bearer", 'user_id': user_id}
r['access_token'] = token
return jsonify(r)
else: