fix GitHub Pretend again

This commit is contained in:
Jens Langhammer 2019-03-13 15:52:05 +01:00
parent d50c7ec8d4
commit e98e5e4e3e
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class GitHubUserView(View):
def verify_access_token(self):
"""Verify access token manually since github uses /user?access_token=..."""
token = get_object_or_404(AccessToken, token=self.request.get('access_token', ''))
token = get_object_or_404(AccessToken, token=self.request.GET.get('access_token', ''))
return token.user
def get(self, request):