summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-07-26 11:09:47 +0100
committerRichard van der Hoff <richard@matrix.org>2016-07-26 11:10:37 +0100
commit8e0249416643f20f0c4cd8f2e19cf45ea63289d3 (patch)
treed8b872fe81bfa9f8d718fecab79db1e92e08f21e /synapse/handlers/device.py
parentMerge pull request #949 from matrix-org/rav/update_devices (diff)
downloadsynapse-8e0249416643f20f0c4cd8f2e19cf45ea63289d3.tar.xz
Delete refresh tokens when deleting devices
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py6
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):