Skip to content

Commit

Permalink
Fix populating username from sociallogin data
Browse files Browse the repository at this point in the history
  • Loading branch information
smcgu committed Jan 29, 2025
1 parent be69a04 commit ff19edf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ghostwriter/users/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def authentication_error(
)

def populate_user(self, request, sociallogin, data):
username = data.get("username")
username = data.get("username") or sociallogin.account.extra_data.get(
"username"
)
first_name = data.get("first_name")
last_name = data.get("last_name")
email = data.get("email")
Expand Down

0 comments on commit ff19edf

Please sign in to comment.