From 5d207e71aae8972741b4112abfd3a768dcdb1a6f Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 24 Jan 2024 14:41:33 -0500 Subject: [PATCH] update reset msg --- handlers/customHandlers.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/handlers/customHandlers.js b/handlers/customHandlers.js index 742a1c3..53388f5 100644 --- a/handlers/customHandlers.js +++ b/handlers/customHandlers.js @@ -69,9 +69,21 @@ function requestResetPassword() { } let token = auth.makeJwt(user, auth.PRIKEY, auth.EXPIRY); // send email to address with link with token - let resetMsg = `

Welcome to caMicroscope! Please go the following page to reset your caMicroscope password. Ignore this email if this request is in error.
- Reset your password -

`; + let resetMsg = `

Welcome to caMicroscope!

+

You are receiving this email because you have requested either a new account or a password reset.

+

Your username is the email address entered during registration: ${email}

+ +

Please click this link to reset your caMicroscope password: Reset your password + +

The password reset link lasts for 24 hours. + +

If the password reset link has expired, the login page has a "Forgot Password" button, or you can follow this direct link to get another email to reset your password. Please give the system a few minutes to send the email.

+ +

Please let us know if you are still unable to log in after trying this. We can set a temporary password for you if needed.

+ +

Thank you for your time,
+ The HTT project management team +

`; // TODO remove this log for prod console.log(resetMsg); sendMail(email, "caMicroscope : Welcome", resetMsg);