gabethexton/express_validation_exercise

★ 0Forks 0JavaScriptGitHub ↗Compare

README

#Express Validation Exercise.

###Add form validations in /signup for:

Reference the addpost route for an example.

  • Username: Required. Must be more than 6 characters, must start with a letter, and no punctuation.
  • Password: Required. Must be more than 8 characters with atleast One letter, one number, and one special character (!?/.,')
  • Email: Required. Must be formatted like an email, (something @ something . something)
  • First Name: Required.
  • Last Name: Required.
  • Phone Number: Required. Must be a 10 digit number formatted like: 999-888-9898

STRETCH:

  • Hook up a database that you insert these values into after you've validated them.

REMINDER: Don't store passwords in plain text.. Make sure you hash it first!

Contributors

micah-eberhard

Issues