users/login: Provider user_id together with token
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
ea7b6391c1
commit
2f0dd2ab9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user