Fixed error message displayed when an error occurs while requesting a password reset
This commit is contained in:
@ -455,7 +455,7 @@ module.exports = function(app) {
|
|||||||
email: email
|
email: email
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
req.flash('errors', err);
|
req.flash('errors', err.message);
|
||||||
return res.redirect('/forgot');
|
return res.redirect('/forgot');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user