Update flash message on successful forgot password request
This commit is contained in:
@ -74,7 +74,7 @@ exports.postForgot = function(req, res) {
|
|||||||
'If you did not request this, please ignore this email and your password will remain unchanged.\n'
|
'If you did not request this, please ignore this email and your password will remain unchanged.\n'
|
||||||
};
|
};
|
||||||
smtpTransport.sendMail(mailOptions, function(err) {
|
smtpTransport.sendMail(mailOptions, function(err) {
|
||||||
req.flash('info', { msg: 'We have sent an email to ' + user.email + ' for further instructions.' });
|
req.flash('info', { msg: 'An e-mail has been sent to ' + user.email + ' with further instructions.' });
|
||||||
done(err, 'done');
|
done(err, 'done');
|
||||||
res.redirect('/forgot');
|
res.redirect('/forgot');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user