[PATCH] Reset checks on both password fields. (#1020580)

David Shea dshea at redhat.com
Fri Oct 18 16:54:43 UTC 2013


When something occurs to reset the state of the password validity
checks, the checks on both the password input and the confirmation input
need to be updated.
---
 pyanaconda/ui/gui/spokes/password.py | 1 +
 pyanaconda/ui/gui/spokes/user.py     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index 703e726..700755f 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -104,6 +104,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
 
         self.pw.grab_focus()
         self.pw.emit("changed")
+        self.confirm.emit("changed")
 
     @property
     def status(self):
diff --git a/pyanaconda/ui/gui/spokes/user.py b/pyanaconda/ui/gui/spokes/user.py
index 591f65b..b2f4cca 100644
--- a/pyanaconda/ui/gui/spokes/user.py
+++ b/pyanaconda/ui/gui/spokes/user.py
@@ -431,6 +431,7 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
 
         # Re-check the password
         self.pw.emit("changed")
+        self.confirm.emit("changed")
 
     def password_changed(self, editable=None, data=None):
         """Update the password strength level bar"""
@@ -451,6 +452,7 @@ class UserSpoke(FirstbootSpokeMixIn, NormalSpoke):
 
             # Re-run the password checks against the new username
             self.pw.emit("changed")
+            self.confirm.emit("changed")
 
     def full_name_changed(self, editable = None, data = None):
         """Called by Gtk callback when the full name field changes.
-- 
1.8.3.1



More information about the anaconda-patches mailing list