Merge pull request #521 from matrix-org/erikj/underscores

Underscores are allowed in user ids
pull/529/head
Erik Johnston 2016-01-25 15:56:31 +00:00
commit 3a75159832
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class RegistrationHandler(BaseHandler):
if urllib.quote(localpart.encode('utf-8')) != localpart: if urllib.quote(localpart.encode('utf-8')) != localpart:
raise SynapseError( raise SynapseError(
400, 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 Codes.INVALID_USERNAME
) )