Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(auth): username should be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksh Saxena committed Jan 3, 2022
1 parent b2b87ab commit 1ce24bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timed/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update_user_from_claims(self, user, claims):

def filter_users_by_claims(self, claims):
username = self.get_username(claims)
return self.UserModel.objects.filter(username=username)
return self.UserModel.objects.filter(username__iexact=username)

def cached_request(self, method, token, cache_prefix):
token_hash = hashlib.sha256(force_bytes(token)).hexdigest()
Expand Down

0 comments on commit 1ce24bd

Please sign in to comment.