-
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 Password in Registration Page
Description
The password field on the registration page currently lacks proper validation to enforce password strength. This validation is necessary to enhance the security of user accounts by ensuring that passwords meet a minimum complexity standard.
Task Details
-
File to Modify:
The password validation logic should be added to the registration page, located atCodebase/frontend/src/pages/register.jsx. -
Validation Requirement:
The password must meet the following criteria:- At least 6 characters long.
- Contain at least one uppercase letter.
- Contain at least one lowercase letter.
- Contain at least one digit.
- Contain at least one special character (e.g.,
!@#$%^&*()).
If the input is invalid, display an error message:
"Password must be at least 6 characters long and include one uppercase letter, one lowercase letter, one digit, and one special character." -
Testing:
- Verify that the password field enforces all the specified validation criteria.
- Test various scenarios, including passwords that:
- Fail to meet one or more criteria.
- Meet all criteria.
- Ensure invalid inputs 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.mdfile 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