mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 01:56:36 +08:00
Merge pull request #199 from coralproject/from-address
FROM field in pw reset email should be an environment variable
This commit is contained in:
@@ -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,6 +1,7 @@
|
||||
const nodemailer = require('nodemailer');
|
||||
|
||||
const smtpRequiredProps = [
|
||||
'TALK_SMTP_FROM_ADDRESS',
|
||||
'TALK_SMTP_USERNAME',
|
||||
'TALK_SMTP_PASSWORD',
|
||||
'TALK_SMTP_HOST'
|
||||
|
||||
Reference in New Issue
Block a user