mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 09:04:11 -04:00
Add specific error code for invalid user names.
This commit is contained in:
parent
a50013fd99
commit
3f8db3d597
2 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,8 @@ class RegistrationHandler(BaseHandler):
|
|||
raise SynapseError(
|
||||
400,
|
||||
"User ID must only contain characters which do not"
|
||||
" require URL encoding."
|
||||
" require URL encoding.",
|
||||
Codes.INVALID_USER_NAME
|
||||
)
|
||||
|
||||
user = UserID(localpart, self.hs.hostname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue