summary refs log tree commit diff
path: root/synapse/config/password.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/config/password.py')
-rw-r--r--synapse/config/password.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/config/password.py b/synapse/config/password.py

index 300b67f236..d5b5953f2f 100644 --- a/synapse/config/password.py +++ b/synapse/config/password.py
@@ -26,15 +26,22 @@ class PasswordConfig(Config): 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! #