summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-05-24 11:08:05 +0100
committerDavid Baker <dave@matrix.org>2018-05-24 11:08:05 +0100
commitb3bff53178dc8dd9050b84bc953c55835e8410d1 (patch)
tree0c00244bd7c46186144e21cdc952c89509a428c6 /synapse/handlers/auth.py
parentHit the 3pid unbind endpoint on deactivation (diff)
downloadsynapse-b3bff53178dc8dd9050b84bc953c55835e8410d1.tar.xz
Unbind 3pids when they're deleted too
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index a5365c4fe4..c3f20417c7 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -825,6 +825,14 @@ class AuthHandler(BaseHandler):
         if medium == 'email':
             address = address.lower()
 
+        identity_handler = self.hs.get_handlers().identity_handler
+        identity_handler.unbind_threepid(user_id,
+            {
+                'medium': medium,
+                'address': address,
+            },
+        )
+
         ret = yield self.store.user_delete_threepid(
             user_id, medium, address,
         )