Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'invalid_user_name' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jan 15, 2016
2 parents 5bf1a3d + 5819b7a commit ac12b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Codes(object):
EXCLUSIVE = "M_EXCLUSIVE"
THREEPID_AUTH_FAILED = "M_THREEPID_AUTH_FAILED"
THREEPID_IN_USE = "THREEPID_IN_USE"
INVALID_USER_NAME = "M_INVALID_USER_NAME"
INVALID_USERNAME = "M_INVALID_USERNAME"


class CodeMessageException(RuntimeError):
Expand Down
2 changes: 1 addition & 1 deletion synapse/handlers/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def check_username(self, localpart, guest_access_token=None):
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)
Expand Down

0 comments on commit ac12b6d

Please sign in to comment.