diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-07-26 11:09:47 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-07-26 11:10:37 +0100 |
commit | 8e0249416643f20f0c4cd8f2e19cf45ea63289d3 (patch) | |
tree | d8b872fe81bfa9f8d718fecab79db1e92e08f21e /synapse/handlers/device.py | |
parent | Merge pull request #949 from matrix-org/rav/update_devices (diff) | |
download | synapse-8e0249416643f20f0c4cd8f2e19cf45ea63289d3.tar.xz |
Delete refresh tokens when deleting devices
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r-- | synapse/handlers/device.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index 9e65d85e6d..eaead50800 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -138,8 +138,10 @@ class DeviceHandler(BaseHandler): else: raise - yield self.store.user_delete_access_tokens(user_id, - device_id=device_id) + yield self.store.user_delete_access_tokens( + user_id, device_id=device_id, + delete_refresh_tokens=True, + ) @defer.inlineCallbacks def update_device(self, user_id, device_id, content): |