CLIxIndia-Dev / clixoer

clixoer is the underlying code stack for CLIx Open Education Resources repository (clixoer.tiss.edu)
GNU Affero General Public License v3.0
0 stars 8 forks source link

In Contact Form, no validation found on phone number field - 2 #153

Open VirajUtekar opened 3 years ago

VirajUtekar commented 3 years ago

Describe the bug In contact form, the phone number field is accepting single digit number(i.e. 1) and as well as 11 digit numbers(i.e. 92929292922) as input

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://staging-clixoer.tiss.edu/cool'
  2. Scroll down to 'Contact form'
  3. enter valid data into firstname, lastname, email and message field
  4. enter invalid data (i.e. single digit, eleven digit) number into phone number field
  5. click on submit
  6. see error

Expected behavior when user tries to submit form with single digit/ eleven digit number should throw an error

Screenshots Screenshot from 2021-09-23 12-51-20

Screenshot from 2021-09-23 12-51-36

Screenshot from 2021-09-23 12-51-59

Screenshot from 2021-09-23 12-52-16

Desktop (please complete the following information):