mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Re-Activating account when local passwords are disabled (#9587)
Fixes: #8393
This commit is contained in:
parent
a7a3790066
commit
70d1b6abff
1
changelog.d/9587.bugfix
Normal file
1
changelog.d/9587.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Re-Activating account with admin API when local passwords are disabled.
|
@ -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."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user