diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-03-18 17:54:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 12:54:08 -0400 |
commit | 8dd2ea65a9566fd0850df0d989f700f61b490ed9 (patch) | |
tree | 558a61437c465c955160d45e8b8356d7ee9a5a68 /synapse/handlers/set_password.py | |
parent | Make federation catchup send last event from any server. (#9640) (diff) | |
download | synapse-8dd2ea65a9566fd0850df0d989f700f61b490ed9.tar.xz |
Consistently check whether a password may be set for a user. (#9636)
Diffstat (limited to 'synapse/handlers/set_password.py')
-rw-r--r-- | synapse/handlers/set_password.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/set_password.py b/synapse/handlers/set_password.py index 84af2dde7e..04e7c64c94 100644 --- a/synapse/handlers/set_password.py +++ b/synapse/handlers/set_password.py @@ -41,7 +41,7 @@ class SetPasswordHandler(BaseHandler): logout_devices: bool, requester: Optional[Requester] = None, ) -> None: - if not self.hs.config.password_localdb_enabled: + if not self._auth_handler.can_change_password(): raise SynapseError(403, "Password change disabled", errcode=Codes.FORBIDDEN) try: |