[PATCH] Don't allow weak LUKS passwords either
Brian C. Lane
bcl at redhat.com
Wed Jan 28 21:42:49 UTC 2015
Be consistent about password strength, make sure LUKS also passes the
minimum libpwquality requirements.
---
pyanaconda/ui/gui/spokes/lib/passphrase.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/passphrase.py b/pyanaconda/ui/gui/spokes/lib/passphrase.py
index 89c2c64..8241ce1 100644
--- a/pyanaconda/ui/gui/spokes/lib/passphrase.py
+++ b/pyanaconda/ui/gui/spokes/lib/passphrase.py
@@ -146,7 +146,8 @@ class PassphraseDialog(GUIObject, GUIInputCheckHandler):
# The save button should only be sensitive if the match check passes
if self._passphrase_match_check.check_status == InputCheck.CHECK_OK and \
- self._confirm_match_check.check_status == InputCheck.CHECK_OK:
+ self._confirm_match_check.check_status == InputCheck.CHECK_OK and \
+ self._strength_check.check_status == InputCheck.CHECK_OK:
self._save_button.set_sensitive(True)
else:
self._save_button.set_sensitive(False)
--
1.9.3
More information about the anaconda-patches
mailing list