summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-25 12:04:10 -0500
committerGitHub <noreply@github.com>2025-03-25 12:04:10 -0500
commit1d419bc2b56a487527dd120d3f39d420fcb615b3 (patch)
treea189d6cb6d63ff0d0294e35dd9c4faa2ffb57042 /src/op_mode
parent1c66841323ba1fa4f90d3ce3de6ef7cebc07ed97 (diff)
parentd9ec5d1e70d3991ac64498734157cfb7934034ee (diff)
downloadvyos-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/op_mode')
-rwxr-xr-xsrc/op_mode/image_installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index c6e9c7f6f..82756daec 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -783,6 +783,7 @@ def install_image() -> None:
break
print(MSG_WARN_IMAGE_NAME_WRONG)
+ failed_check_status = [EPasswdStrength.WEAK, EPasswdStrength.ERROR]
# ask for password
while True:
user_password: str = ask_input(MSG_INPUT_PASSWORD, no_echo=True,
@@ -792,7 +793,7 @@ def install_image() -> None:
Warning(MSG_WARN_CHANGE_PASSWORD)
else:
result = evaluate_strength(user_password)
- if result['strength'] == EPasswdStrength.WEAK:
+ if result['strength'] in failed_check_status:
Warning(result['error'])
confirm: str = ask_input(MSG_INPUT_PASSWORD_CONFIRM, no_echo=True,