Update flash message on successful forgot password request

This commit is contained in:
Sahat Yalkabov
2014-02-18 02:38:31 -05:00
parent 43e2afd607
commit 597f137a2b

View File

@ -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');
}); });