[f21/master] Clear the kickstart password if cleared by the user (#1133185)
Anne Mulhern
amulhern at redhat.com
Thu Sep 4 20:10:00 UTC 2014
----- Original Message -----
> From: "David Shea" <dshea at redhat.com>
> To: anaconda-patches at fedorahosted.org
> Sent: Thursday, September 4, 2014 2:41:02 PM
> Subject: [f21/master] Clear the kickstart password if cleared by the user (#1133185)
>
> If the user re-enters the password spoke and clears the password,
> for-real clear the password instead of leaving it blank in the UI and
> set in ksdata.
> ---
> pyanaconda/ui/gui/spokes/password.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/pyanaconda/ui/gui/spokes/password.py
> b/pyanaconda/ui/gui/spokes/password.py
> index ee2da7d..1177d4a 100644
> --- a/pyanaconda/ui/gui/spokes/password.py
> +++ b/pyanaconda/ui/gui/spokes/password.py
> @@ -131,6 +131,7 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke,
> GUISpokeInputCheckHandler)
> def apply(self):
> pw = self.pw.get_text()
> if not pw:
> + self.data.rootpw.password = None
> return
>
> self.data.rootpw.password = cryptPassword(pw)
> --
> 2.0.0
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>
I'm not sure, but it looks to me like you ought to look at the TUI as well.
And maybe set isCrypted and seen to False.
- mulhern
More information about the anaconda-patches
mailing list