summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-14 10:56:35 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-14 10:56:35 +0000
commit673d3f88fa9bb5e1ed02398af0bf5119cc8bd4be (patch)
tree57d08a87712d0a7e30f60cb3f62f98d1be801ac8 /synapse/handlers/auth.py
parentInclude systemd-python in Debian package to allow logging to journal (#5261) (diff)
parentAdded possibilty to disable local password authentication (#5092) (diff)
downloadsynapse-673d3f88fa9bb5e1ed02398af0bf5119cc8bd4be.tar.xz
Added possibilty to disable local password authentication (#5092)
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 94b3879c61..57e5283bd8 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -743,7 +743,7 @@ class AuthHandler(BaseHandler):
                     result = (result, None)
                 defer.returnValue(result)
 
-        if login_type == LoginType.PASSWORD:
+        if login_type == LoginType.PASSWORD and self.hs.config.password_localdb_enabled:
             known_login_type = True
 
             canonical_user_id = yield self._check_local_password(