diff --git a/myhpi/core/auth.py b/myhpi/core/auth.py index 228b2c3d..d9803f0d 100644 --- a/myhpi/core/auth.py +++ b/myhpi/core/auth.py @@ -31,6 +31,7 @@ def create_user(self, claims): return user def update_user(self, user, claims): + user.username = claims.get("sub") user.email = claims.get("email") user.first_name = claims.get("given_name", "") user.last_name = claims.get("family_name", "")