summary refs log tree commit diff
path: root/synapse/config/password.py
diff options
context:
space:
mode:
authorAmber H. Brown <hawkowl@atleastfornow.net>2019-07-02 18:31:29 +1000
committerAmber H. Brown <hawkowl@atleastfornow.net>2019-07-02 18:31:29 +1000
commit4689408a35e6ff9b7b18a5940e79d15e6b846913 (patch)
tree4bf2c4347abb712bf7cad0040809409cc8cd6c72 /synapse/config/password.py
parentrelease shhs on tags (diff)
parentfix async/await consentresource (#5585) (diff)
downloadsynapse-4689408a35e6ff9b7b18a5940e79d15e6b846913.tar.xz
Merge remote-tracking branch 'origin/develop' into shhs
Diffstat (limited to 'synapse/config/password.py')
-rw-r--r--synapse/config/password.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/synapse/config/password.py b/synapse/config/password.py
index eea59e772b..d5b5953f2f 100644
--- a/synapse/config/password.py
+++ b/synapse/config/password.py
@@ -20,21 +20,28 @@ class PasswordConfig(Config):
     """Password login configuration
     """
 
-    def read_config(self, config):
+    def read_config(self, config, **kwargs):
         password_config = config.get("password_config", {})
         if password_config is None:
             password_config = {}
 
         self.password_enabled = password_config.get("enabled", True)
+        self.password_localdb_enabled = password_config.get("localdb_enabled", True)
         self.password_pepper = password_config.get("pepper", "")
 
-    def default_config(self, config_dir_path, server_name, **kwargs):
+    def generate_config_section(self, config_dir_path, server_name, **kwargs):
         return """\
         password_config:
            # Uncomment to disable password login
            #
            #enabled: false
 
+           # Uncomment to disable authentication against the local password
+           # database. This is ignored if `enabled` is false, and is only useful
+           # if you have other password_providers.
+           #
+           #localdb_enabled: false
+
            # Uncomment and change to a secret random string for extra security.
            # DO NOT CHANGE THIS AFTER INITIAL SETUP!
            #