summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2019-06-27 19:37:29 +0200
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-06-27 18:37:29 +0100
commit9646a593ac555e7b68c6133c29a9f5bac83d1c2f (patch)
tree5713d4de9a618466aba4b6a0eeafeb926cc3a20c /synapse/handlers/auth.py
parentInclude systemd-python in Debian package to allow logging to journal (#5261) (diff)
downloadsynapse-9646a593ac555e7b68c6133c29a9f5bac83d1c2f.tar.xz
Added possibilty to disable local password authentication (#5092)
Signed-off-by: Daniel Hoffend <dh@dotlan.net>

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 97b21c4093..c8c1ed3246 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(