diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-11-06 12:01:54 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-11-06 12:01:54 +0000 |
commit | 4059d61e2608ac823ef04fe37f23fcac2387a37b (patch) | |
tree | 813a1ac5f2b4407545fe4a91ab03adc0f3817d17 /synapse/replication/http | |
parent | Numeric ID checker now checks @0, don't ratelimit on checking (diff) | |
download | synapse-4059d61e2608ac823ef04fe37f23fcac2387a37b.tar.xz |
Don't forget to ratelimit calls outside of RegistrationHandler
Diffstat (limited to 'synapse/replication/http')
-rw-r--r-- | synapse/replication/http/register.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/http/register.py b/synapse/replication/http/register.py index 915cfb9430..6f4bba7aa4 100644 --- a/synapse/replication/http/register.py +++ b/synapse/replication/http/register.py @@ -75,6 +75,8 @@ class ReplicationRegisterServlet(ReplicationEndpoint): async def _handle_request(self, request, user_id): content = parse_json_object_from_request(request) + await self.registration_handler.check_registration_ratelimit(content["address"]) + await self.registration_handler.register_with_store( user_id=user_id, password_hash=content["password_hash"], |