[PATCH] Fix the password error for when nothing's in the confirm entry.

David Shea dshea at redhat.com
Mon Nov 4 21:08:34 UTC 2013


On 11/04/2013 04:03 PM, Chris Lumens wrote:
> ---
>   pyanaconda/ui/gui/spokes/password.py | 4 +---
>   1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
> index fa5ef85..5c63e80 100644
> --- a/pyanaconda/ui/gui/spokes/password.py
> +++ b/pyanaconda/ui/gui/spokes/password.py
> @@ -75,8 +75,6 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
>           # click Done twice check.
>           self._pwStrengthCheck = self.add_check(self.pw, self._checkPasswordStrength)
>   
> -        self.add_check(self.confirm, self._checkPasswordEmpty)
> -
>           # Counter for the click Done twice check override
>           self._waivePasswordClicks = 0
>   
> @@ -170,7 +168,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
>           # Skip the check if no password is required
>           if (not pw and not confirm) and self._kickstarted:
>               result = GUICheck.CHECK_OK
> -        elif confirm and (pw != confirm):
> +        elif not confirm or (confirm and pw != confirm):
>               result = _(PASSWORD_CONFIRM_ERROR_GUI)
>           else:
>               result = GUICheck.CHECK_OK
Ack. Same thing is going on in user.py


More information about the anaconda-patches mailing list