fix: remove unused PasswordStrength enum (#4111)#4291
fix: remove unused PasswordStrength enum (#4111)#4291singhh-piyush wants to merge 3 commits intoarchlinux:masterfrom
Conversation
5de29ec to
20576ab
Compare
PR DescriptionRestores the Changes:
Tests and Checks
Verification:
|
5ce42c4 to
bb2a849
Compare
374096d to
d4f916f
Compare
|
Logic and tests for Technical Note: The All logic has been verified locally with |
d4f916f to
c9d01da
Compare
c9d01da to
fcaff8b
Compare
|
Thanks for the feedback! I integrated Files changed
Tests Tested locally in a QEMU VM running the Arch ISO. Screenshots attached.
|
|
My personal opinion is that adding this functionality if it forces you to make a more complex password makes no sense at all, but if it’s just a warning and then it will skip this password, then that’s a different matter. |
Hey, it's a non-blocking warning only. You can still proceed with any password regardless of strength, more of a hint/warning for the user. i added this to address issue #4111 where |



PR Description:
Removes
PasswordStrengthenum and associated logic fromlib/models/users.py. This is dead code following the refactor in88b91ae.Changes:
lib/models/users.py: DeletedPasswordStrengthclass and methods (value,color,strength,_check_password_strength).Enum,auto, andtrfromusers.py.lib/models/__init__.py: RemovedPasswordStrengthfrom imports and__all__.Tests and Checks
Verification:
pytest tests/passed (13/13).ruff,mypy,flake8, andpylint.grep -r "PasswordStrength" archinstall/returned 0 results.