success message on password reset
This commit is contained in:
parent
34a81d7923
commit
f8ed8e244d
@ -419,6 +419,8 @@ router.post('/login/reset', accountLimiter, csrfValidation, wrap(async (req, res
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await API.User.Reset.reset(email)
|
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')
|
res.redirect('/login/reset?success=true')
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return formError(req, res, e.message)
|
return formError(req, res, e.message)
|
||||||
|
Reference in New Issue
Block a user