summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-06-06 14:23:43 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-06-06 14:23:43 +0100
commitcd4f4a2ab4507eac28e7484d804c27f361e5c97e (patch)
tree48579b3ab92486d0a8584bac20351c6c66afbd43 /synapse
parentregen sample config (diff)
downloadsynapse-cd4f4a2ab4507eac28e7484d804c27f361e5c97e.tar.xz
test for ci
Diffstat (limited to 'synapse')
-rw-r--r--synapse/config/emailconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/config/emailconfig.py b/synapse/config/emailconfig.py
index 296aad943e..88d6ba2b5f 100644
--- a/synapse/config/emailconfig.py
+++ b/synapse/config/emailconfig.py
@@ -85,7 +85,7 @@ class EmailConfig(Config):
         self.email_password_reset_behaviour = (
             "remote" if email_trust_identity_server_for_password_resets else "local"
         )
-        if not email_trust_identity_server_for_password_resets and email_config == {}:
+        if self.email_password_reset_behaviour == "local" and email_config == {}:
             logger.warn(
                 "User password resets have been disabled due to lack of email config"
             )
@@ -123,8 +123,8 @@ class EmailConfig(Config):
             if (len(missing) > 0):
                 raise RuntimeError(
                     "email.password_reset_behaviour is set to 'local' "
-                    "but required keys are missing: %s" %
-                    (", ".join(["email." + k for k in missing]),)
+                    "but required keys are missing: %s email config: %s" %
+                    (", ".join(["email." + k for k in missing]), email_config)
                 )
 
             # Templates for password reset emails