Skip to content

Commit 9e200d9

Browse files
authored
Use normalize_username instead of .lower
allows for following normalization changes
1 parent 32b2189 commit 9e200d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firstuseauthenticator/firstuseauthenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def validate_username(self, name):
138138

139139
@gen.coroutine
140140
def authenticate(self, handler, data):
141-
username = data['username'].lower()
141+
username = self.normalize_username(data['username'])
142142

143143
if not self.create_users:
144144
if not self._user_exists(username):

0 commit comments

Comments
 (0)