Passport js password reset Using Express and Mongo

Viewed 2323

I'm using passport to register and authenticate users. I'm trying to let users change their passwords. I'm using vanilla passport setup with no customisation, and when a new user is registered it automatically generates a salt and hash.

I have username, salt and old (forgotten password) hash in my database, but I don't understand how to generate the new hash with the new password. Is there a passport method/command????

Thanks

0 Answers
Related