mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:06:02 -04:00
Fix changing password via user admin API. (#6730)
This commit is contained in:
parent
e9e066055f
commit
ceecedc68b
3 changed files with 16 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue