Skip to content

Commit

Permalink
Use normalize_username instead of .lower
Browse files Browse the repository at this point in the history
allows for following normalization changes
  • Loading branch information
minrk committed Oct 26, 2021
1 parent 32b2189 commit 9e200d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firstuseauthenticator/firstuseauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def validate_username(self, name):

@gen.coroutine
def authenticate(self, handler, data):
username = data['username'].lower()
username = self.normalize_username(data['username'])

if not self.create_users:
if not self._user_exists(username):
Expand Down

0 comments on commit 9e200d9

Please sign in to comment.