Validation for the registration form - intive/patronage21-qa GitHub Wiki

Validation for the registration form

  1. Name [letters] min 2 max 30

  2. Surname [letters] min 2 max 30

  3. Email [email format] from a dedicated library for a given language

  4. Phone [digits] exactly 9

  5. Technologies [checkboxes] min 1 max 3

  6. Login [letters and digits] min 2 max 15

  7. Password [at least one uppercase letter, one lowercase letter, one number and one special character] min 8 max 20

    regex: ^(?=.[a-z])(?=.[A-Z])(?=.\d)(?=.[@$!%?&])[A-Za-z\d@$!%?&]{8,20}$

  8. Github URL [http[s]://][www.][github.com/][username may only contain alphanumeric characters or single hyphens, and cannot begin or end with a hyphen, max 39 characters]

  9. Consents [checkboxes] all must be checked