From f8ed8e244d77f71906275568c4b25028fd57e2e1 Mon Sep 17 00:00:00 2001 From: Evert Date: Thu, 30 Nov 2017 23:56:27 +0200 Subject: [PATCH] success message on password reset --- server/routes/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/routes/index.js b/server/routes/index.js index e857f71..48c8a21 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -419,6 +419,8 @@ router.post('/login/reset', accountLimiter, csrfValidation, wrap(async (req, res try { await API.User.Reset.reset(email) + + req.flash('message', {error: false, text: 'We\'ve sent a link to your email address. Please check spam folders too!'}) res.redirect('/login/reset?success=true') } catch (e) { return formError(req, res, e.message)