mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 17:24:48 -04:00
Add config option to not send email notifs for new users
This commit is contained in:
parent
e04b1d6b0a
commit
94040b0798
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue