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/.
I had the same issue just delete the null parameter from this line:
bcrypt.hash(user.password, salt, null, function(err, hash) {