nicklathe / auth_lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#AUTH LAB

Time to implement authentication...and ... Go!


  • Everyone signup form (store to database)

  • validation - check password length

  • hooks / bcrypt - encrypt password before create

  • session / bcrypt - check password and store user in session (don't store user's password in session)

  • middleware / session - create a getUser() method attached to req

  • Everyone - Use the req.getUser() information to deny the user access to the /restricted page.

About


Languages

Language:JavaScript 100.0%