users/login: Provider user_id together with token
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
+5
-2
@@ -99,8 +99,11 @@ def login():
|
||||
if token is None:
|
||||
return make_response({}, 403)
|
||||
|
||||
return make_response({"token": token.token})
|
||||
|
||||
return make_response(
|
||||
{
|
||||
"token": token.token,
|
||||
"user_id": token.user_id
|
||||
})
|
||||
|
||||
@app.route("/users/<user_id>/profile")
|
||||
@token_auth
|
||||
|
||||
Reference in New Issue
Block a user