Skip to content

Instantly share code, notes, and snippets.

@rogerwschmidt
Created July 9, 2018 15:49
Show Gist options
  • Save rogerwschmidt/30c9ee39fafef196f3d5217a6a635d5d to your computer and use it in GitHub Desktop.
Save rogerwschmidt/30c9ee39fafef196f3d5217a6a635d5d to your computer and use it in GitHub Desktop.

User Registration Instructior Notes

Obejctives

  • Create a series of steps necessary to create a user
  • Walk through the code to create a user
  • Explain why hashing a password is a good idea

Resources

What are the necessary steps to create a user

  • What information do you need when creating a user?
  • What do you need to do before adding a user to the database?
  • After inserting a new user into the database, what information do you need to return to the controller

Walk through the code to create a user

  • Initialize the repo, migrate and seed the database, and start the server
  • Using HTTPie, create a user
  • With your teams, walk through your code that executes while adding a new user

Explain why hashing a password is a good idea

  • What is hashing?
  • How/where are passwords hashed in the example repo?
  • Why is hashing passwords a good idea?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment