From 54307291ae5194cff42c8bd525e21bb560370f14 Mon Sep 17 00:00:00 2001 From: Bram Reyniers Date: Fri, 17 May 2024 11:59:29 +0200 Subject: [PATCH] fix bug login not working on first ever login --- backend/src/auth/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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