summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/account.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-24 14:42:12 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-24 14:42:12 +0000
commit6ed566e52a2252e91ad23c9bbd52655fe96d9727 (patch)
tree477d298f981a7a20a53a21cbc6c80f6886c6c85d /synapse/rest/client/v2_alpha/account.py
parentUpdate INSTALL.md updated CentOS8 install instructions (#6925) (diff)
parentAdd an option to the set password API to choose whether to logout other devic... (diff)
downloadsynapse-6ed566e52a2252e91ad23c9bbd52655fe96d9727.tar.xz
Add an option to the set password API to choose whether to logout other devices. (#7085)
* commit '88b41986d':
  Add an option to the set password API to choose whether to logout other devices. (#7085)
Diffstat (limited to 'synapse/rest/client/v2_alpha/account.py')
-rw-r--r--synapse/rest/client/v2_alpha/account.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index bd1c0efbcb..c99cce5e87 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -274,8 +274,11 @@ class PasswordRestServlet(RestServlet):
 
         assert_params_in_dict(params, ["new_password"])
         new_password = params["new_password"]
+        logout_devices = params.get("logout_devices", True)
 
-        await self._set_password_handler.set_password(user_id, new_password, requester)
+        await self._set_password_handler.set_password(
+            user_id, new_password, logout_devices, requester
+        )
 
         if self.hs.config.shadow_server:
             shadow_user = UserID(