diff --git a/myhpi/core/auth.py b/myhpi/core/auth.py index 29d07219..9953bc4a 100644 --- a/myhpi/core/auth.py +++ b/myhpi/core/auth.py @@ -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")