summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py')
-rw-r--r--opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py b/opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py
index 0dcf2463..fe61ce25 100644
--- a/opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py
+++ b/opendc-web/opendc-web-api/opendc/api/v2/users/endpoint.py
@@ -20,7 +20,7 @@ def POST(request):
request.check_required_parameters(body={'user': {'email': 'string'}})
user = User(request.params_body['user'])
- user.set_property('googleId', request.google_id)
+ user.set_property('googleId', request.current_user['sub'])
user.set_property('authorizations', [])
user.check_already_exists()