Skip to content
Snippets Groups Projects
Unverified Commit f7bc63ef authored by Quentin Gliech's avatar Quentin Gliech Committed by GitHub
Browse files

Make sure we advertise registration as disabled when MSC3861 is enabled (#17661)

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: default avatarAndrew Morgan <andrew@amorgan.xyz>
parent ecad88f5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment