From ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575 Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 26 May 2019 13:42:42 -0400 Subject: list all account names in the outbound reset email --- src/routers/tmwa/middlewares/account.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routers/tmwa/middlewares/account.js b/src/routers/tmwa/middlewares/account.js index 1c7d0da..6b05945 100644 --- a/src/routers/tmwa/middlewares/account.js +++ b/src/routers/tmwa/middlewares/account.js @@ -198,6 +198,10 @@ const reset_password = async (req, res, next) => { } } + let account_names = ""; + for (ac of accounts) + account_names += `${ac.name}\n`; + const uuid = uuidv4(); transporter.sendMail({ from: req.app.locals.mailer.from, @@ -205,7 +209,7 @@ const reset_password = async (req, res, next) => { 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"+ - "The following accounts are associated with this email address:\n" + account_names + "\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}` }, (err, info) => { pending_operations.set(uuid, { -- cgit v1.2.3-60-g2f50