Python-project-Scripts
Python-project-Scripts copied to clipboard
Bug fix: Added password_validator_fixed.py with uppercase and lowercase validation
Description: This PR fixes a bug in the password validation logic where the previous script did not properly enforce the presence of uppercase and lowercase letters in passwords.
Changes made:
-
Added a new file password_validator_fixed.py in the folder PASSWORD RELATED/password-validator/.
-
Updated password validation rules to ensure:
- At least one uppercase letter - At least one lowercase letter - At least one number - At least one special character - Minimum length of 6 and maximum length of 12 - No spaces
Steps to verify:
- Run password_validator_fixed.py.
- Enter passwords that meet some but not all criteria.
- Verify that the script rejects passwords missing uppercase or lowercase letters.
- verify that valid passwords are accepted.
Notes:
- Original PASSWORD_VALIDATOR.py remains unchanged.
- This fix ensures proper enforcement of password strength requirements as described in the initial rules.
Impact:
- Improves security by enforcing stronger password rules.
- Helps users avoid creating weak passwords.