Skip to content
Snippets Groups Projects
Unverified Commit 70d1b6ab authored by Dirk Klimpel's avatar Dirk Klimpel Committed by GitHub
Browse files

Re-Activating account when local passwords are disabled (#9587)

Fixes: #8393
parent a7a37900
No related branches found
No related tags found
No related merge requests found
Re-Activating account with admin API when local passwords are disabled.
\ No newline at end of file
......@@ -269,7 +269,10 @@ class UserRestServletV2(RestServlet):
target_user.to_string(), False, requester, by_admin=True
)
elif not deactivate and user["deactivated"]:
if "password" not in body:
if (
"password" not in body
and self.hs.config.password_localdb_enabled
):
raise SynapseError(
400, "Must provide a password to re-activate an account."
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment