Skip to content

Commit

Permalink
do not update users from OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Oct 11, 2023
1 parent bfb430a commit 5d2b579
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions myhpi/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ def create_user(self, claims):

return user

def update_user(self, user, claims):
user.first_name = claims.get("given_name", "")
user.last_name = claims.get("family_name", "")
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 5d2b579

Please sign in to comment.