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

add validation for register form #132

Open
Omar-Nabil opened this issue Dec 9, 2023 · 6 comments
Open

add validation for register form #132

Omar-Nabil opened this issue Dec 9, 2023 · 6 comments
Assignees

Comments

@Omar-Nabil
Copy link
Contributor

No description provided.

@Omar-Nabil
Copy link
Contributor Author

i would like to work on this issue can you assign it to me @IshaanAdarsh

@Omar-Nabil
Copy link
Contributor Author

@nown1ne can you tell me what is the validation in our application for registration form ?

@nown1ne
Copy link
Collaborator

nown1ne commented Dec 9, 2023

  • name is not null
  • email is valid
  • number is valid
  • password is atleast 8 characters

@Omar-Nabil
Copy link
Contributor Author

I addressed an issue in the registration form validation to ensure that user input is appropriately validated before submission. The following changes have been implemented:

Name Validation:
Added validation for the name field to ensure it is not left blank.
Display a validation message prompting the user to enter a name if the field is empty.

Email Validation:
Implemented regular expression validation for the email field to ensure a valid email format.
Displays a validation message if an invalid email format is detected.

Phone Number Validation:
Set a minimum length requirement of 8 digits for the phone number field.
Displays a validation message if the entered phone number is less than 8 digits.

Password Validation:
Set a minimum length requirement of 8 characters for the password field.
Displays a validation message if the password length is below the specified limit.

Confirm Password Validation:
Implemented a check to ensure that the confirmation password matches the original password.
Displays a validation message if the confirmation password does not match.

Submit Button Validation:
Created a function to validate all form fields when the user attempts to register.
Calls individual validation functions for each field.

These changes aim to enhance the user experience by providing clear feedback on registration form errors, helping users correct their input before submission.

This was referenced Dec 10, 2023
@Omar-Nabil
Copy link
Contributor Author

i edited it can you check it ? @nown1ne #138

@Omar-Nabil
Copy link
Contributor Author

#148

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