mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 07:50:05 +00:00
Underscores are allowed in user ids
This commit is contained in:
parent
7a3fe48ba4
commit
7959e8b764
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue