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

Vratislav Podzimek vpodzime at redhat.com
Mon Oct 21 09:16:09 UTC 2013


On Fri, 2013-10-18 at 12:54 -0400, David Shea wrote:
> 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.
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list