Merge remote-tracking branch 'origin/master' into rustedbuilds
This commit is contained in:
commit
cbb1ab5e68
1 changed files with 5 additions and 0 deletions
|
@ -120,6 +120,11 @@ def get_user():
|
||||||
'username': get_authenticated_user().username,
|
'username': get_authenticated_user().username,
|
||||||
'email': get_authenticated_user().email,
|
'email': get_authenticated_user().email,
|
||||||
})
|
})
|
||||||
|
elif get_validated_token():
|
||||||
|
return jsonify({
|
||||||
|
'username': '$token',
|
||||||
|
'email': None,
|
||||||
|
})
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue