[PATCH] Don't allow weak LUKS passwords either
Vratislav Podzimek
vpodzime at redhat.com
Thu Jan 29 06:46:18 UTC 2015
On Wed, 2015-01-28 at 13:42 -0800, Brian C. Lane wrote:
> 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)
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list