[firstboot] Clear the user entry text fields (#736193)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The user is created immediately when pressed forward,
so if we go back, and the text fields are already filled
with the old values, after we press forward again,
firstboot tries to create the user again which results in an error.
If the text fields are cleared out, you can skip creating
the user, because you already have one created.
---
 modules/create_user.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/create_user.py b/modules/create_user.py
index d1b9365..1ce4061 100644
--- a/modules/create_user.py
+++ b/modules/create_user.py
@@ -400,7 +400,10 @@ class moduleClass(Module):
         self.fullnameEntry.grab_focus()
 
     def initializeUI(self):
-        pass
+        self.fullnameEntry.set_text("")
+        self.usernameEntry.set_text("")
+        self.passwordEntry.set_text("")
+        self.confirmEntry.set_text("")
 
     def _runAuthconfig(self, *args):
         self.nisFlag = 1
-- 
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux