diff options
author | David Baker <dave@matrix.org> | 2016-05-10 14:34:53 +0200 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-05-10 14:34:53 +0200 |
commit | 94040b0798a7e4db88e75485906fd8a2b31b117c (patch) | |
tree | 887f103418bd59e35ad35826b57624f1c0b69ce8 /synapse/rest/client/v2_alpha | |
parent | Make pep8 happy (diff) | |
download | synapse-94040b0798a7e4db88e75485906fd8a2b31b117c.tar.xz |
Add config option to not send email notifs for new users
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py index 883b1c1291..ad04383555 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py @@ -219,7 +219,10 @@ class RegisterRestServlet(RestServlet): # if email notifications are enabled (so people don't start # getting mail spam where they weren't before if email # notifs are set up on a home server) - if self.hs.config.email_enable_notifs: + if ( + self.hs.config.email_enable_notifs and + self.hs.config.email_notifs_for_new_users + ): # Pull the ID of the access token back out of the db # It would really make more sense for this to be passed # up when the access token is saved, but that's quite an |