summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-01-20 17:23:59 +0000
committerGitHub <noreply@github.com>2020-01-20 17:23:59 +0000
commitceecedc68ba1af25b0ee60c5cf927fd1fd245b9f (patch)
tree485516ca1afdc48271e2b102a9ece8b376d9754f /synapse
parentFix empty account_validity config block (#6747) (diff)
downloadsynapse-ceecedc68ba1af25b0ee60c5cf927fd1fd245b9f.tar.xz
Fix changing password via user admin API. (#6730)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/admin/users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py
index 574cb90c74..c178c960c5 100644
--- a/synapse/rest/admin/users.py
+++ b/synapse/rest/admin/users.py
@@ -193,8 +193,8 @@ class UserRestServletV2(RestServlet):
                     raise SynapseError(400, "Invalid password")
                 else:
                     new_password = body["password"]
-                    await self._set_password_handler.set_password(
-                        target_user, new_password, requester
+                    await self.set_password_handler.set_password(
+                        target_user.to_string(), new_password, requester
                     )
 
             if "deactivated" in body: