Minor tweak
This commit is contained in:
+2
-2
@@ -336,7 +336,7 @@ const passwordRecoverRequest = (connection) => (req, res) => {
|
|||||||
//build the recovery email
|
//build the recovery email
|
||||||
let addr = `http://${process.env.WEB_ADDRESS}/passwordreset?email=${fields.email}&token=${rand}`;
|
let addr = `http://${process.env.WEB_ADDRESS}/passwordreset?email=${fields.email}&token=${rand}`;
|
||||||
let msg = 'Hello! Please visit the following address to set a new password (if you didn\'t request a password recovery, ignore this email): ';
|
let msg = 'Hello! Please visit the following address to set a new password (if you didn\'t request a password recovery, ignore this email): ';
|
||||||
let msgHtml = `<html><body><p>${msg}<a href='${addr}'>${addr}</a></p></body></html>`;
|
// let msgHtml = `<html><body><p>${msg}<a href='${addr}'>${addr}</a></p></body></html>`;
|
||||||
|
|
||||||
//BUGFIX: is gmail being cruel?
|
//BUGFIX: is gmail being cruel?
|
||||||
let sentinel = false;
|
let sentinel = false;
|
||||||
@@ -347,7 +347,7 @@ const passwordRecoverRequest = (connection) => (req, res) => {
|
|||||||
to: fields.email,
|
to: fields.email,
|
||||||
subject: 'Password Recovery',
|
subject: 'Password Recovery',
|
||||||
text: msg + addr,
|
text: msg + addr,
|
||||||
html: msgHtml
|
// html: msgHtml
|
||||||
}, (err, reply) => {
|
}, (err, reply) => {
|
||||||
//final check
|
//final check
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user