Started work on URL-Token based password reset system. Email not yet implemented.
This commit is contained in:
parent
8ee92541de
commit
ed698f40c7
22 changed files with 580 additions and 16 deletions
|
|
@ -67,7 +67,7 @@ module.exports.post = async function(req, res){
|
|||
if(data.passChange){
|
||||
//kill active session to prevent connect-mongo from freaking out
|
||||
accountUtils.killSession(req.session);
|
||||
await userDB.passwordReset(data.passChange);
|
||||
await userDB.changePassword(data.passChange);
|
||||
}
|
||||
|
||||
await userDB.save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue