summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-22 14:59:49 +0000
committerErik Johnston <erik@matrix.org>2016-01-22 14:59:49 +0000
commit7959e8b76475527c58c1dda364779a84c6e16368 (patch)
treeaf05cab8f20fdde92f603b7af96cdaabf625f68c /synapse/handlers/register.py
parentMerge pull request #519 from matrix-org/dbkr/treecache (diff)
downloadsynapse-7959e8b76475527c58c1dda364779a84c6e16368.tar.xz
Underscores are allowed in user ids
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r--synapse/handlers/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 1e99c1303c..c11b98d0b7 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -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
             )