summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-05-26 13:39:51 -0400
committergumi <git@gumi.ca>2019-05-26 13:39:51 -0400
commit9b14b96abc40ada081790d1486883f037a947439 (patch)
treee03715ec72e06c7c74e6e2a2369ff6b25c420165
parenta8050bea74db6564eaeb7f73a0332fea2a64ef7b (diff)
downloadapi-9b14b96abc40ada081790d1486883f037a947439.tar.gz
api-9b14b96abc40ada081790d1486883f037a947439.tar.bz2
api-9b14b96abc40ada081790d1486883f037a947439.tar.xz
api-9b14b96abc40ada081790d1486883f037a947439.zip
tell players to contact staff if they believe they've been hacked
-rw-r--r--src/routers/tmwa/middlewares/account.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routers/tmwa/middlewares/account.js b/src/routers/tmwa/middlewares/account.js
index 0ba1010..1c7d0da 100644
--- a/src/routers/tmwa/middlewares/account.js
+++ b/src/routers/tmwa/middlewares/account.js
@@ -201,7 +201,7 @@ const reset_password = async (req, res, next) => {
const uuid = uuidv4();
transporter.sendMail({
from: req.app.locals.mailer.from,
- to: email,
+ to: req.body.email,
subject: "The Mana World password reset",
text: "You are receiving this email because someone (you?) has requested a password reset on The Mana World"+
"with your email address.\nIf you did not request a password reset please ignore this email.\n\n"+
@@ -306,9 +306,9 @@ const reset_password = async (req, res, next) => {
transporter.sendMail({
from: req.app.locals.mailer.from,
- to: email,
+ to: account.email,
subject: "The Mana World password reset",
- text: `You have successfully reset the password for account \"${req.body.username}\".\nHave fun playing The Mana World!`
+ text: `You have successfully reset the password for account \"${req.body.username}\".\nHave fun playing The Mana World!\n\n⚠ If you did not perform this password reset, please contact us ASAP to secure your account.`
}, (err, info) => {
req.app.locals.logger.info(`TMWA.account: sent password reset confirmation email: ${req.body.username} ${info.messageId}`);
});