Update README.md

master
Kristyn Bryan 10 years ago committed by GitHub
parent 553cf65b11
commit a2aa681f23

@ -72,7 +72,13 @@ When a user goes to the welcome page, if they do not have a name set in sessions
"Commit 7: The user has a custom page or is redirected to the login if their name isn't set to the session. "
<hr>
FROM MATT"S LESSON
Install and reqire `bcrypt`
Hash a string using bcrypt.
Reminder on how to has a password string using bcrypt:
`req.session.password = bcrypt.hashSync(req.params.password, bcrypt.genSaltSync(10));`
////////////////////////////////////////////

Loading…
Cancel
Save