summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-03-31 18:27:21 +0200
committerGitHub <noreply@github.com>2022-03-31 18:27:21 +0200
commit5e88143dff7aa6f8682bd6182e946b3470d1728e (patch)
tree17c65e0c0f490b2fbb9bac3459f0c51eda876c8e /synapse/handlers
parentREADME-testing.md: fix minor error (diff)
downloadsynapse-5e88143dff7aa6f8682bd6182e946b3470d1728e.tar.xz
Add a callback to react to 3PID associations (#12302)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/auth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 3e29c96a49..86991d26ce 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -211,6 +211,7 @@ class AuthHandler:
         self.macaroon_gen = hs.get_macaroon_generator()
         self._password_enabled = hs.config.auth.password_enabled
         self._password_localdb_enabled = hs.config.auth.password_localdb_enabled
+        self._third_party_rules = hs.get_third_party_event_rules()
 
         # Ratelimiter for failed auth during UIA. Uses same ratelimit config
         # as per `rc_login.failed_attempts`.
@@ -1505,6 +1506,8 @@ class AuthHandler:
             user_id, medium, address, validated_at, self.hs.get_clock().time_msec()
         )
 
+        await self._third_party_rules.on_threepid_bind(user_id, medium, address)
+
     async def delete_threepid(
         self, user_id: str, medium: str, address: str, id_server: Optional[str] = None
     ) -> bool: