Prettied up UI for password resets. Now to move on to email component.
This commit is contained in:
parent
ed698f40c7
commit
3671b43789
5 changed files with 51 additions and 18 deletions
|
|
@ -41,7 +41,7 @@ module.exports.post = async function(req, res){
|
|||
}
|
||||
|
||||
//Generate the password reset link
|
||||
const requestDB = await passwordResetModel.generateResetToken(userDB);
|
||||
const requestDB = await passwordResetModel.create({user: userDB._id});
|
||||
|
||||
//send successful response
|
||||
res.status(200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue