summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-11-06 17:21:20 +0000
committerGitHub <noreply@github.com>2019-11-06 17:21:20 +0000
commita6ebef1bfd322f3ac2a6393388f0eda9fa476047 (patch)
treefb4011dabf8ab2a1eef741dca71d22829c060ee6 /synapse/replication
parentMerge branch 'master' into develop (diff)
parentraise exception after multiple failures (diff)
downloadsynapse-a6ebef1bfd322f3ac2a6393388f0eda9fa476047.tar.xz
Make numeric user_id checker start at @0, and don't ratelimit on checking (#6338)
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/http/register.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/http/register.py b/synapse/replication/http/register.py
index 915cfb9430..0c4aca1291 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)
 
+        self.registration_handler.check_registration_ratelimit(content["address"])
+
         await self.registration_handler.register_with_store(
             user_id=user_id,
             password_hash=content["password_hash"],