Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form validations / sanitization for authentication form #27

Open
Nalipp opened this issue Aug 21, 2019 · 1 comment
Open

Form validations / sanitization for authentication form #27

Nalipp opened this issue Aug 21, 2019 · 1 comment
Assignees

Comments

@Nalipp
Copy link
Contributor

Nalipp commented Aug 21, 2019

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
Copy link
Contributor Author

Nalipp commented Aug 21, 2019

The following library might be a good place to start

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

@Nalipp Nalipp changed the title Form validations and form sanitization for authentication form (future) Form validations / sanitization for authentication form Aug 28, 2019
@xChristianZx xChristianZx self-assigned this Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants