summaryrefslogtreecommitdiffstats
path: root/iw/account_gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-21 06:07:02 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-21 06:07:02 +0000
commitebc429c831d3477002de96fe5c6d138aa9ecea87 (patch)
tree76e6b26fde222fe1b310fb184ad37360b12bd087 /iw/account_gui.py
parentf31b24dc30e0d87a4fbe23108277c841b6102a66 (diff)
downloadanaconda-ebc429c831d3477002de96fe5c6d138aa9ecea87.tar.gz
anaconda-ebc429c831d3477002de96fe5c6d138aa9ecea87.tar.xz
anaconda-ebc429c831d3477002de96fe5c6d138aa9ecea87.zip
oops, don't let passwords of less than six chars be added (#72006)
Diffstat (limited to 'iw/account_gui.py')
-rw-r--r--iw/account_gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py
index 25e1eae2b..ac3fd03f9 100644
--- a/iw/account_gui.py
+++ b/iw/account_gui.py
@@ -116,13 +116,13 @@ class AccountWindow (InstallWindow):
accountName = self.userstore.get_value(iter, 0)
fullName = self.userstore.get_value(iter, 1)
password = self.passwords[accountName]
-
return (accountName, fullName, password)
def userSelected(self, selection, *args):
self.edit.set_sensitive(gtk.TRUE)
self.delete.set_sensitive(gtk.TRUE)
+
def addUser_cb(self):
accountName = self.accountName.get_text()
password1 = self.userPass1.get_text()
@@ -133,6 +133,8 @@ class AccountWindow (InstallWindow):
return
if accountName == "root":
return
+ if len(password1) < 6:
+ return
if self.passwords.has_key (accountName):
return