Skip to content

Commit

Permalink
fix bug login not working on first ever login
Browse files Browse the repository at this point in the history
  • Loading branch information
reyniersbram committed May 17, 2024
1 parent 208c432 commit 5430729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/auth/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5430729

Please sign in to comment.