Skip to content

Commit

Permalink
Merge pull request #393 from johngian/issue-388
Browse files Browse the repository at this point in the history
Fixes #388 - Pass email as named argument on create_user
  • Loading branch information
John Giannelos committed Dec 24, 2020
2 parents 30e6a99 + e7d411e commit 744fe17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozilla_django_oidc/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_user(self, claims):
"""Return object for a newly created user account."""
email = claims.get('email')
username = self.get_username(claims)
return self.UserModel.objects.create_user(username, email)
return self.UserModel.objects.create_user(username, email=email)

def get_username(self, claims):
"""Generate username based on claims."""
Expand Down

0 comments on commit 744fe17

Please sign in to comment.