everywhere: add email notifications

This commit is contained in:
Adhityaa Chandrasekar
2019-02-18 11:23:44 -05:00
parent 69aba94590
commit 06f0f6f014
33 changed files with 872 additions and 30 deletions

View File

@@ -10,6 +10,11 @@ func domainModeratorNew(domain string, email string) error {
return errorMissingField
}
if err := emailNew(email); err != nil {
logger.Errorf("cannot create email when creating moderator: %v", err)
return errorInternal
}
statement := `
INSERT INTO
moderators (domain, email, addDate)