diff --git a/packages/backend/src/routers/send-pass-recovery-email.js b/packages/backend/src/routers/send-pass-recovery-email.js index f1fa8dd5d..33f43df6c 100644 --- a/packages/backend/src/routers/send-pass-recovery-email.js +++ b/packages/backend/src/routers/send-pass-recovery-email.js @@ -114,10 +114,7 @@ router.post('/send-pass-recovery-email', express.json(), body_parser_error_handl }); // Send response - 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.`}); + return res.send({message: `If the email address exists in our database. A recovery email will be sent to ${user.email}`}); }catch(e){ console.log(e) @@ -126,4 +123,4 @@ router.post('/send-pass-recovery-email', express.json(), body_parser_error_handl }) -module.exports = router \ No newline at end of file +module.exports = router