[PATCH] Fix the password error for when nothing's in the confirm entry.
Chris Lumens
clumens at redhat.com
Mon Nov 4 21:03:57 UTC 2013
---
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
--
1.8.3.1
More information about the anaconda-patches
mailing list