users/login: Provider user_id together with token
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Frank Lanitz 2021-06-21 18:41:02 +02:00
parent cbf3002b93
commit a0a63aa215
1 changed files with 5 additions and 2 deletions

View File

@ -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