Skip to content

Commit

Permalink
Merge pull request #102 from ImperialCollegeLondon/rstrip-fix
Browse files Browse the repository at this point in the history
Fix striping logic for user names in oauth info_handler
  • Loading branch information
cc-a authored Jan 8, 2025
2 parents 146d6ce + ed188f9 commit be706b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/ic_data_repo/auth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def info_handler(
user=dict(
email=data["email"],
profile=dict(
username=data["preferred_username"].rstrip("@ic.ac.uk"),
username=data["preferred_username"].removesuffix("@ic.ac.uk"),
full_name=data["name"],
),
),
Expand Down

0 comments on commit be706b7

Please sign in to comment.