diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-03-26 07:39:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 07:39:34 -0400 |
commit | 1c1242acba9694a3a4b1eb3b14ec0bac11ee4ff8 (patch) | |
tree | d1f850c22a7c141d6c2199916b4b5b011a4ae754 /synapse/rest/client/v2_alpha/devices.py | |
parent | Remove unused captcha_bypass_secret option (#7137) (diff) | |
download | synapse-1c1242acba9694a3a4b1eb3b14ec0bac11ee4ff8.tar.xz |
Validate that the session is not modified during UI-Auth (#7068)
Diffstat (limited to 'synapse/rest/client/v2_alpha/devices.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/devices.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/devices.py b/synapse/rest/client/v2_alpha/devices.py index 94ff73f384..119d979052 100644 --- a/synapse/rest/client/v2_alpha/devices.py +++ b/synapse/rest/client/v2_alpha/devices.py @@ -81,7 +81,7 @@ class DeleteDevicesRestServlet(RestServlet): assert_params_in_dict(body, ["devices"]) await self.auth_handler.validate_user_via_ui_auth( - requester, body, self.hs.get_ip_from_request(request) + requester, request, body, self.hs.get_ip_from_request(request), ) await self.device_handler.delete_devices( @@ -127,7 +127,7 @@ class DeviceRestServlet(RestServlet): raise await self.auth_handler.validate_user_via_ui_auth( - requester, body, self.hs.get_ip_from_request(request) + requester, request, body, self.hs.get_ip_from_request(request), ) await self.device_handler.delete_device(requester.user.to_string(), device_id) |