Closed Raywire closed 4 years ago
Sets the app to use bcrypt.
[x] Adds the bcrypt dependency
[x] Updates authenticate method to use bcrypt
[x] Updates encryptPassword method to use bcrypt
[x] Removes salt field from the UserSchema
[x] Removes makeSalt method
https://github.com/madhums/node-express-mongoose-demo.git
cd node-express-mongoose-demo
git checkout hotfix/use-bcrypt
npm install
npm start
http://localhost:3000/signup
214
Thanks a bunch @Raywire!
What does this PR do?
Sets the app to use bcrypt.
Description of Task to be completed?
[x] Adds the bcrypt dependency
[x] Updates authenticate method to use bcrypt
[x] Updates encryptPassword method to use bcrypt
[x] Removes salt field from the UserSchema
[x] Removes makeSalt method
How should this be manually tested?
https://github.com/madhums/node-express-mongoose-demo.git
cd node-express-mongoose-demo
git checkout hotfix/use-bcrypt
npm install
npm start
http://localhost:3000/signup
What is the relevant issue number?
214