mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Modify condition on empty localpart
This commit is contained in:
parent
369195caa5
commit
ccad2ed824
@ -54,7 +54,7 @@ class RegistrationHandler(BaseHandler):
|
|||||||
Codes.INVALID_USERNAME
|
Codes.INVALID_USERNAME
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(localpart) == 0:
|
if not localpart:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
400,
|
||||||
"User ID cannot be empty",
|
"User ID cannot be empty",
|
||||||
|
Loading…
Reference in New Issue
Block a user