Skip to content

Commit

Permalink
Fix user creation in google_callback_view
Browse files Browse the repository at this point in the history
  • Loading branch information
aottr committed Mar 13, 2024
1 parent 399cc20 commit 2a0bfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def google_callback_view(request):
except Exception:
return redirect("login")

user, created = PawUser.objects.get_or_create(email=user_info["email"], username=user_info["email"])
user, created = PawUser.objects.get_or_create(email=user_info["email"], defaults={"username": user_info["email"]})

if created:
GoogleSSOUser.objects.create(paw_user=user, google_id=user_info["id"])
Expand Down

0 comments on commit 2a0bfe6

Please sign in to comment.