rithmschool / elevate

Human resources for the employee.
0 stars 0 forks source link

Form validations / sanitization for authentication form #27

Open Nalipp opened 5 years ago

Nalipp commented 5 years ago

Each form input item should be validated email: should be a valid email password: should be of certain length, hold certain character types (to be discussed)

We also need to prevent sql injections with sort of form sanitization

We should also prevent extremely long data inputs hitting the server

eventHandler for logout and profile dropdown needs to be set on parent

Validations
  should not be able to submit empty form
  should be an actaul email
  email and password are required
  password should 6 characters
  the same messaging pattern for updating basic info should be followed / reused for authenticating a user

  personal profile
    hire date should not be required when editing basic user profile
Nalipp commented 5 years ago

The following library might be a good place to start

https://www.npmjs.com/package/express-validator https://express-validator.github.io/docs/