update the reset password functionality and make the password reset form consistent with other such forms

This commit is contained in:
Michael Q Larson
2015-01-12 22:02:33 -08:00
parent 3afd05ad85
commit 26c3f265ad
2 changed files with 6 additions and 5 deletions

View File

@ -428,7 +428,8 @@ exports.getReset = function(req, res) {
return res.redirect('/forgot');
}
res.render('account/reset', {
title: 'Password Reset'
title: 'Password Reset',
token: req.params.token
});
});
};
@ -590,7 +591,7 @@ exports.postForgot = function(req, res, next) {
'/reset/',
token,
'\n\n',
'If you did not request this, please ignore this email and',
'If you did not request this, please ignore this email and\n',
'your password will remain unchanged.\n'
].join('')
};