Underscores are allowed in user ids

This commit is contained in:
Erik Johnston 2016-01-22 14:59:49 +00:00
parent 7a3fe48ba4
commit 7959e8b764

View file

@ -52,7 +52,7 @@ class RegistrationHandler(BaseHandler):
if urllib.quote(localpart.encode('utf-8')) != localpart:
raise SynapseError(
400,
"User ID can only contain characters a-z, 0-9, or '-./'",
"User ID can only contain characters a-z, 0-9, or '_-./'",
Codes.INVALID_USERNAME
)