diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2021-03-19 16:12:40 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2021-03-19 16:12:40 +0100 |
commit | 592d6305fda97ceda92a8ce6079a9fdbe9928567 (patch) | |
tree | 7a0edf2be5f22754bf8da194a1412d740ef0a004 /synapse/handlers/set_password.py | |
parent | Fix lint (diff) | |
parent | fix mypy (diff) | |
download | synapse-592d6305fda97ceda92a8ce6079a9fdbe9928567.tar.xz |
Merge branch 'develop' into babolivier/msc3026
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: |