Skip to content

Conversation

gouriphadnis0301
Copy link

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.

Copy link

Hi @gouriphadnis0301! 👋

Thank you for submitting a pull request! We appreciate your contribution and will review your changes as soon as possible.

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

Successfully merging this pull request may close these issues.

1 participant