From b3fe3a32e45351cc558780ac71baeb8bdb0c2a10 Mon Sep 17 00:00:00 2001 From: jakedt Date: Fri, 21 Feb 2014 16:07:08 -0500 Subject: [PATCH] Fix logins for access tokens. --- endpoints/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/endpoints/index.py b/endpoints/index.py index 33c74d972..864805b9a 100644 --- a/endpoints/index.py +++ b/endpoints/index.py @@ -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)