diff options
author | David Baker <dbkr@users.noreply.github.com> | 2018-06-11 16:02:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-11 16:02:00 +0100 |
commit | 187a546bffd08e2a8c66761746001b36b93a90e4 (patch) | |
tree | 62c9be434967d4a555341ec47ac802a05bfdd07d /synapse/handlers/auth.py | |
parent | fix idiotic typo in state res (diff) | |
parent | pep8 (diff) | |
download | synapse-187a546bffd08e2a8c66761746001b36b93a90e4.tar.xz |
Merge pull request #3276 from matrix-org/dbkr/unbind
Remove email addresses / phone numbers from ID servers when they're removed from synapse
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index 3c0051586d..912136534d 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -825,6 +825,15 @@ class AuthHandler(BaseHandler): if medium == 'email': address = address.lower() + identity_handler = self.hs.get_handlers().identity_handler + yield identity_handler.unbind_threepid( + user_id, + { + 'medium': medium, + 'address': address, + }, + ) + ret = yield self.store.user_delete_threepid( user_id, medium, address, ) |