[PATCH 12/12] Don't skip the strength check if overriding a kickstart password

David Shea dshea at redhat.com
Fri Oct 4 18:28:18 UTC 2013


---
 pyanaconda/ui/gui/spokes/user.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 7a314f1..b6d855b 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -525,7 +525,8 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
          """
 
         # Skip the check if no password is required
-        if (not self.usepassword.get_active()) or self._user.password_kickstarted:
+        if (not self.usepassword.get_active()) or \
+                ((not self.pw.get_text()) and (self._user.password_kickstarted)):
             return GUICheck.CHECK_OK
 
         # If the password failed the validity check, fail this check
-- 
1.8.3.1



More information about the anaconda-patches mailing list