Modify condition on empty localpart

pull/4/merge
Luke Barnard 8 years ago
parent 369195caa5
commit ccad2ed824
  1. 2
      synapse/handlers/register.py

@ -54,7 +54,7 @@ class RegistrationHandler(BaseHandler):
Codes.INVALID_USERNAME
)
if len(localpart) == 0:
if not localpart:
raise SynapseError(
400,
"User ID cannot be empty",

Loading…
Cancel
Save