Merge pull request #199 from coralproject/from-address

FROM field in pw reset email should be an environment variable
This commit is contained in:
Wyatt Johnson authored and GitHub committed 2016-12-22 16:42:22 -07:00
commit 16120091c5
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -119,7 +119,7 @@ router.post('/request-password-reset', (req, res, next) => {
const options = {
subject: 'Password Reset Requested - Talk',
from: 'noreply@coralproject.net',
from: process.env.TALK_SMTP_FROM_ADDRESS,
to: email,
html: resetEmailTemplate({
token,
+1
View File
@@ -1,6 +1,7 @@
const nodemailer = require('nodemailer');
const smtpRequiredProps = [
'TALK_SMTP_FROM_ADDRESS',
'TALK_SMTP_USERNAME',
'TALK_SMTP_PASSWORD',
'TALK_SMTP_HOST'