diff --git a/backend/src/auth/router.py b/backend/src/auth/router.py index 36221aca..2881a949 100644 --- a/backend/src/auth/router.py +++ b/backend/src/auth/router.py @@ -59,7 +59,7 @@ async def token( mail=attributes["mail"], ), ) - if resolved_user.surname == 'SURNAME_DEFAULT': + elif resolved_user.surname == 'SURNAME_DEFAULT': resolved_user.surname = attributes["surname"] # Create JWT token