Skip to content

Commit

Permalink
Fix striping logic for user names in oauth info_handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-a committed Jan 6, 2025
1 parent 146d6ce commit ed188f9
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 ed188f9

Please sign in to comment.