diff options
author | gumi <git@gumi.ca> | 2019-05-26 13:42:42 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-05-26 13:42:42 -0400 |
commit | ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575 (patch) | |
tree | aba9d856b3099729cfc73678869ac90bdb8c6057 | |
parent | 9b14b96abc40ada081790d1486883f037a947439 (diff) | |
download | apiv1-ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575.tar.gz apiv1-ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575.tar.bz2 apiv1-ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575.tar.xz apiv1-ec54b8e722dc8eb7c9b499b4e311fdc9ff0d1575.zip |
list all account names in the outbound reset email
-rw-r--r-- | src/routers/tmwa/middlewares/account.js | 6 |
1 files changed, 5 insertions, 1 deletions
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, { |