Skip to content

molloeduardo/fieldscontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

Fields control

This is a simple list of controls that you have to do when you are developing a registration/login form in you application or website.

User registration

  • Check for empty fields.
  • Check for trim.
  • Check for double spaces.
  • Check if the email is valid.
  • Check for the password length.
  • Check if the password has numbers and special chars.
  • Check if the confirmation password matches.
  • Check if the inserted birth date has a valid pattern.
  • Check user age.
  • Check if data has the right length.
  • Check if the email already exists into the database.
  • Data formatting:
    • Capitalize first letter of name and surname and strlower the other letters.
    • Lower case email.
  • Hash password and save user into the database.

User login

  • Check for empty fields.
  • Check if the email is valid.
  • Check if email and password length is right.
  • Data formatting:
    • Lower case email.
  • Check if credentials are valid.
  • If credentials are valid:
    • Update database user last access.
    • Create user session or cookie.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published