Python-project-Scripts icon indicating copy to clipboard operation
Python-project-Scripts copied to clipboard

Bug fix: Added password_validator_fixed.py with uppercase and lowercase validation

Open gouriphadnis0301 opened this issue 3 months ago • 1 comments

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:

  1. Run password_validator_fixed.py.
  2. Enter passwords that meet some but not all criteria.
  3. Verify that the script rejects passwords missing uppercase or lowercase letters.
  4. 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.

gouriphadnis0301 avatar Sep 30 '25 09:09 gouriphadnis0301