mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-12 10:56:50 +00:00
This has been a problem with Element Web, as it will proble /register with an empty body, which gave this error: ``` curl -d '{}' -HContent-Type:application/json /_matrix/client/v3/register {"errcode": "M_UNKNOWN", "error": "Invalid username"} ``` And Element Web would choke on it. This changes that so we reply instead: ``` {"errcode": "M_FORBIDDEN", "error": "Registration has been disabled. Only m.login.application_service registrations are allowed."} ``` Also adds a test for this. See https://github.com/element-hq/element-web/issues/27993 --------- Co-authored-by: Andrew Morgan <andrew@amorgan.xyz> |
||
---|---|---|
.. | ||
.gitignore | ||
17436.doc | ||
17616.misc | ||
17661.bugfix | ||
17949.feature | ||
17967.misc | ||
18004.feature | ||
18122.doc | ||
18124.misc | ||
18125.bugfix | ||
18134.misc | ||
18135.bugfix | ||
18136.misc | ||
18138.doc | ||
18139.misc | ||
18144.feature | ||
18145.bugfix | ||
18158.docker | ||
18159.doc | ||
18165.bugfix | ||
18172.misc |