From 4e3d286740a4aa54bffc5eaac648502053032dd0 Mon Sep 17 00:00:00 2001 From: Riley Davis Date: Thu, 22 Dec 2016 14:53:33 -0700 Subject: [PATCH] add environment var for pw reset FROM field --- routes/api/users/index.js | 2 +- services/mailer.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/api/users/index.js b/routes/api/users/index.js index 759701e52..1ce2e0e26 100644 --- a/routes/api/users/index.js +++ b/routes/api/users/index.js @@ -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, diff --git a/services/mailer.js b/services/mailer.js index fe07f063b..9ff7291d4 100644 --- a/services/mailer.js +++ b/services/mailer.js @@ -1,6 +1,7 @@ const nodemailer = require('nodemailer'); const smtpRequiredProps = [ + 'TALK_SMTP_FROM_ADDRESS', 'TALK_SMTP_USERNAME', 'TALK_SMTP_PASSWORD', 'TALK_SMTP_HOST'