Don't assign numeric IDs for empty usernames (#6690)
Fix a bug where we would assign a numeric userid if somebody tried registering with an empty usernamepull/6702/head
parent
3cfac9593c
commit
2d07c73777
|
@ -0,0 +1 @@
|
|||
Fix a bug where we would assign a numeric userid if somebody tried registering with an empty username.
|
|
@ -174,7 +174,7 @@ class RegistrationHandler(BaseHandler):
|
|||
if password:
|
||||
password_hash = yield self._auth_handler.hash(password)
|
||||
|
||||
if localpart:
|
||||
if localpart is not None:
|
||||
yield self.check_username(localpart, guest_access_token=guest_access_token)
|
||||
|
||||
was_guest = guest_access_token is not None
|
||||
|
|
Loading…
Reference in New Issue