diff --git a/packages/backend/src/routers/send-pass-recovery-email.js b/packages/backend/src/routers/send-pass-recovery-email.js index 33f43df6..f1fa8dd5 100644 --- a/packages/backend/src/routers/send-pass-recovery-email.js +++ b/packages/backend/src/routers/send-pass-recovery-email.js @@ -114,7 +114,10 @@ router.post('/send-pass-recovery-email', express.json(), body_parser_error_handl }); // Send response - return res.send({message: `If the email address exists in our database. A recovery email will be sent to ${user.email}`}); + if(req.body.username) + return res.send({message: `Password recovery sent to the email associated with ${user.username}. Please check your email for instructions on how to reset your password.`}); + else + return res.send({message: `Password recovery email sent to ${user.email}. Please check your email for instructions on how to reset your password.`}); }catch(e){ console.log(e) @@ -123,4 +126,4 @@ router.post('/send-pass-recovery-email', express.json(), body_parser_error_handl }) -module.exports = router +module.exports = router \ No newline at end of file