mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-10-03 23:48:26 -04:00
Fix errorcode for disabled registration (#8867)
The spec says we should return `M_FORBIDDEN` when someone tries to register and registration is disabled.
This commit is contained in:
parent
66f75c5b74
commit
cf3b8156be
3 changed files with 3 additions and 1 deletions
|
@ -121,6 +121,7 @@ class RegisterRestServletTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
self.assertEquals(channel.result["code"], b"403", channel.result)
|
||||
self.assertEquals(channel.json_body["error"], "Registration has been disabled")
|
||||
self.assertEquals(channel.json_body["errcode"], "M_FORBIDDEN")
|
||||
|
||||
def test_POST_guest_registration(self):
|
||||
self.hs.config.macaroon_secret_key = "test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue