diff options
author | Erik Johnston <erikj@jki.re> | 2019-04-03 11:07:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 11:07:09 +0100 |
commit | 8f549c11773e0a410de3ef56ab7b6385ecda8ac5 (patch) | |
tree | c4eb76d4a59ac05cea694cd74e2cca77ac4bcd4e /synapse/handlers/deactivate_account.py | |
parent | Run black on the rest of the storage module (#4996) (diff) | |
parent | Correctly handle id_server param (diff) | |
download | synapse-8f549c11773e0a410de3ef56ab7b6385ecda8ac5.tar.xz |
Merge pull request #4982 from matrix-org/erikj/msc1915
Implement MSC1915 - 3PID unbind APIs
Diffstat (limited to 'synapse/handlers/deactivate_account.py')
-rw-r--r-- | synapse/handlers/deactivate_account.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py index 97d3f31d98..6a91f7698e 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py @@ -43,12 +43,15 @@ class DeactivateAccountHandler(BaseHandler): hs.get_reactor().callWhenRunning(self._start_user_parting) @defer.inlineCallbacks - def deactivate_account(self, user_id, erase_data): + def deactivate_account(self, user_id, erase_data, id_server=None): """Deactivate a user's account Args: user_id (str): ID of user to be deactivated erase_data (bool): whether to GDPR-erase the user's data + id_server (str|None): Use the given identity server when unbinding + any threepids. If None then will attempt to unbind using the + identity server specified when binding (if known). Returns: Deferred[bool]: True if identity server supports removing @@ -74,6 +77,7 @@ class DeactivateAccountHandler(BaseHandler): { 'medium': threepid['medium'], 'address': threepid['address'], + 'id_server': id_server, }, ) identity_server_supports_unbinding &= result |