summary refs log tree commit diff
path: root/synapse/config/emailconfig.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-22 00:00:20 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-24 14:14:52 +0100
commit16b52642e274054a070fb494684547a77790c22b (patch)
treedf8d390407e6848473d38f3589d8ae4d5aa1a5a4 /synapse/config/emailconfig.py
parentEnsure that all config options have sensible defaults (diff)
downloadsynapse-16b52642e274054a070fb494684547a77790c22b.tar.xz
Don't load the generated config as the default.
It's too confusing.
Diffstat (limited to 'synapse/config/emailconfig.py')
-rw-r--r--synapse/config/emailconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py
index 07df7b7173..cf39936da7 100644
--- a/synapse/config/emailconfig.py
+++ b/synapse/config/emailconfig.py
@@ -214,7 +214,7 @@ class EmailConfig(Config):
                 if not os.path.isfile(p):
                     raise ConfigError("Unable to find email template file %s" % (p,))
 
-    def default_config(self, config_dir_path, server_name, **kwargs):
+    def generate_config_section(self, config_dir_path, server_name, **kwargs):
         return """
         # Enable sending emails for password resets, notification events or
         # account expiry notices