diff --git a/oauth/views.py b/oauth/views.py index cc82d97..6089b7d 100644 --- a/oauth/views.py +++ b/oauth/views.py @@ -41,7 +41,7 @@ def authorize(request): if email: author = None try: - author = get_user_model().objects.get(email=email) + author = get_user_model().objects.get(id=user.author_id) except ObjectDoesNotExist: pass if not author: