From 6b5dfae12c35694481f2dd3a2bb7a46b527b43bb Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 26 May 2019 13:46:59 -0400 Subject: fix a typo in the outbound email --- src/routers/tmwa/middlewares/account.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routers/tmwa/middlewares/account.js b/src/routers/tmwa/middlewares/account.js index 6b05945..a40e8f0 100644 --- a/src/routers/tmwa/middlewares/account.js +++ b/src/routers/tmwa/middlewares/account.js @@ -199,15 +199,16 @@ const reset_password = async (req, res, next) => { } let account_names = ""; - for (ac of accounts) + for (const ac of accounts) { account_names += `${ac.name}\n`; + } const uuid = uuidv4(); transporter.sendMail({ from: req.app.locals.mailer.from, 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"+ + 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"+ "The following accounts are associated with this email address:\n" + account_names + "\n"+ "To proceed with the password reset:\n" + `${req.app.locals.tmwa.reset}${uuid}` -- cgit v1.2.3-70-g09d2