summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-05-26 13:46:59 -0400
committergumi <git@gumi.ca>2019-05-26 13:47:12 -0400
commit6b5dfae12c35694481f2dd3a2bb7a46b527b43bb (patch)
tree7fe2744ae49cf4321502285d578d019f8fa5563e
parentec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575 (diff)
downloadapi-6b5dfae12c35694481f2dd3a2bb7a46b527b43bb.tar.gz
api-6b5dfae12c35694481f2dd3a2bb7a46b527b43bb.tar.bz2
api-6b5dfae12c35694481f2dd3a2bb7a46b527b43bb.tar.xz
api-6b5dfae12c35694481f2dd3a2bb7a46b527b43bb.zip
fix a typo in the outbound email
-rw-r--r--src/routers/tmwa/middlewares/account.js5
1 files 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}`