Skip to content

Commit

Permalink
Merge pull request #215 from SELab-2/surname-on-login
Browse files Browse the repository at this point in the history
Fix login error
  • Loading branch information
miboelae authored May 17, 2024
2 parents 2a737f7 + 5430729 commit a813608
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 a813608

Please sign in to comment.