mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 19:44:06 +00:00
Don't try & check the username if we don't have one (which we won't if it's been saved in the auth layer)
This commit is contained in:
1 parent
28d07a02e4
commit
7148aaf5d0
1 file changed
+2
-1
@@ -102,7 +102,8 @@ class RegisterRestServlet(RestServlet):
|
||||
if self.hs.config.disable_registration:
|
||||
raise SynapseError(403, "Registration has been disabled")
|
||||
|
||||
yield self.registration_handler.check_username(desired_username)
|
||||
if desired_username is not None:
|
||||
yield self.registration_handler.check_username(desired_username)
|
||||
|
||||
if self.hs.config.enable_registration_captcha:
|
||||
flows = [
|
||||
|
||||
Reference in new issue
Block a user