Fix logins for access tokens.

This commit is contained in:
jakedt 2014-02-21 16:07:08 -05:00
parent 20a19fc05e
commit b3fe3a32e4

View file

@ -120,6 +120,11 @@ def get_user():
'username': get_authenticated_user().username,
'email': get_authenticated_user().email,
})
elif get_validated_token():
return jsonify({
'username': '$token',
'email': None,
})
abort(404)