summaryrefslogtreecommitdiffstats
path: root/textw/userauth_text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-04-11 18:29:07 +0000
committerChris Lumens <clumens@redhat.com>2006-04-11 18:29:07 +0000
commit123a65b73ba52ae56256c965d610536cc24f5a71 (patch)
tree7071d45152b27682adf6399ea22fc03754e85193 /textw/userauth_text.py
parent2413f486a9bac357c9aa19559cd33a6fd900f07a (diff)
downloadanaconda-123a65b73ba52ae56256c965d610536cc24f5a71.tar.gz
anaconda-123a65b73ba52ae56256c965d610536cc24f5a71.tar.xz
anaconda-123a65b73ba52ae56256c965d610536cc24f5a71.zip
Use libuser for handling the root password instead of a bunch of our own
stuff.
Diffstat (limited to 'textw/userauth_text.py')
-rw-r--r--textw/userauth_text.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/textw/userauth_text.py b/textw/userauth_text.py
index cc394b57a..f2266680a 100644
--- a/textw/userauth_text.py
+++ b/textw/userauth_text.py
@@ -33,11 +33,11 @@ class RootPasswordWindow:
"root password is a critical part "
"of system security!")), 0, 0, (0, 0, 0, 1))
- pw = rootPw.getPure()
- if not pw: pw = ""
+ if rootPw["isCrypted"]:
+ rootPw["password"] = ""
- entry1 = Entry (24, password = 1, text = pw)
- entry2 = Entry (24, password = 1, text = pw)
+ entry1 = Entry (24, password = 1, text = rootPw["password"])
+ entry2 = Entry (24, password = 1, text = rootPw["password"])
passgrid = Grid (2, 2)
passgrid.setField (Label (_("Password:")), 0, 0, (0, 0, 1, 0), anchorLeft = 1)
passgrid.setField (Label (_("Password (confirm):")), 0, 1, (0, 0, 1, 0), anchorLeft = 1)
@@ -77,5 +77,5 @@ class RootPasswordWindow:
entry2.set ("")
screen.popWindow()
- rootPw.set (entry1.value ())
+ rootPw["password"] = entry1.value()
return INSTALL_OK