Password Reset In NodeJS

前端 未结 4 962
春和景丽
春和景丽 2021-01-31 11:15

I have made a set up to update a user\'s password using NodeJS/Passport. I followed this great guide: http://sahatyalkabov.com/how-to-implement-password-reset-in-nodejs/.

4条回答
  •  野性不改
    2021-01-31 11:24

    I had the same issue just delete the null parameter from this line:

    bcrypt.hash(user.password, salt, null, function(err, hash) {

提交回复
热议问题