-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
EasyDifficulty level is easyDifficulty level is easybugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Add Validation for 10-Digit Whatsapp Number in Registration Page
Description
The Whatsapp number field on the registration page currently does not have validation to ensure the number entered is exactly 10 digits long. This validation is necessary to ensure the accuracy and consistency of the data entered by users.
Task Details
-
File to Modify:
The Whatsapp number validation logic should be added to the registration page, located atcodebase/frontend/src/pages/register.jsx. -
Validation Requirement:
- The Whatsapp number must be exactly 10 digits long.
- If the input is invalid, display an error message:
"Whatsapp number must be exactly 10 digits."
-
Testing:
- Verify that the Whatsapp number field accepts only 10-digit numbers.
- Ensure invalid inputs (e.g., fewer or more than 10 digits, or non-numeric characters) show the appropriate error message.
-
Follow Pull Request Guidelines:
- Use a regular expression or other appropriate validation methods to enforce this constraint.
- Follow the Pull_request_template.md file when submitting the Pull Request.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyDifficulty level is easyDifficulty level is easybugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers