diff options
author | David Baker <dave@matrix.org> | 2016-01-15 10:06:34 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-15 10:06:34 +0000 |
commit | 5819b7a78ccbb07914d9c03ab426df084ba86f2c (patch) | |
tree | 99435a203ac323ee4b59b57677b79ce9d205d440 /synapse/handlers/register.py | |
parent | Add specific error code for invalid user names. (diff) | |
download | synapse-5819b7a78ccbb07914d9c03ab426df084ba86f2c.tar.xz |
M_INVALID_USERNAME to be consistent with the parameter name
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 83f4daaa8c..8e601b052b 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -54,7 +54,7 @@ class RegistrationHandler(BaseHandler): 400, "User ID must only contain characters which do not" " require URL encoding.", - Codes.INVALID_USER_NAME + Codes.INVALID_USERNAME ) user = UserID(localpart, self.hs.hostname) |