diff options
author | John Estabrook <jestabro@vyos.io> | 2025-03-25 12:04:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-25 12:04:10 -0500 |
commit | 1d419bc2b56a487527dd120d3f39d420fcb615b3 (patch) | |
tree | a189d6cb6d63ff0d0294e35dd9c4faa2ffb57042 /src/conf_mode | |
parent | 1c66841323ba1fa4f90d3ce3de6ef7cebc07ed97 (diff) | |
parent | d9ec5d1e70d3991ac64498734157cfb7934034ee (diff) | |
download | vyos-1x-1d419bc2b56a487527dd120d3f39d420fcb615b3.tar.gz vyos-1x-1d419bc2b56a487527dd120d3f39d420fcb615b3.zip |
Merge pull request #4413 from oniko94/fix/T7278-fix-cracklib-dep-build
T7278: Remove cracklib hack from postconfig script template
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system_login.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/system_login.py b/src/conf_mode/system_login.py index 1e6061ecf..3fed6d273 100755 --- a/src/conf_mode/system_login.py +++ b/src/conf_mode/system_login.py @@ -160,9 +160,10 @@ def verify(login): dict_object=user_config ) or None + failed_check_status = [EPasswdStrength.WEAK, EPasswdStrength.ERROR] if plaintext_password is not None: result = evaluate_strength(plaintext_password) - if result['strength'] == EPasswdStrength.WEAK: + if result['strength'] in failed_check_status: Warning(result['error']) for pubkey, pubkey_options in (dict_search('authentication.public_keys', user_config) or {}).items(): |