Skip to content

Commit

Permalink
update email again
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Oct 19, 2023
1 parent 9b38505 commit 3963485
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions myhpi/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def create_user(self, claims):

return user

def update_user(self, user, claims):
user.email = mail_replacement(claims.get("email"))
user.save()

return user

def filter_users_by_claims(self, claims):
"""Return all users matching the specified username."""
username = claims.get("sub")
Expand Down

0 comments on commit 3963485

Please sign in to comment.