mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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:
parent
28d07a02e4
commit
7148aaf5d0
@ -102,6 +102,7 @@ class RegisterRestServlet(RestServlet):
|
|||||||
if self.hs.config.disable_registration:
|
if self.hs.config.disable_registration:
|
||||||
raise SynapseError(403, "Registration has been disabled")
|
raise SynapseError(403, "Registration has been disabled")
|
||||||
|
|
||||||
|
if desired_username is not None:
|
||||||
yield self.registration_handler.check_username(desired_username)
|
yield self.registration_handler.check_username(desired_username)
|
||||||
|
|
||||||
if self.hs.config.enable_registration_captcha:
|
if self.hs.config.enable_registration_captcha:
|
||||||
|
Loading…
Reference in New Issue
Block a user