diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-08-21 06:07:02 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-08-21 06:07:02 +0000 |
commit | ebc429c831d3477002de96fe5c6d138aa9ecea87 (patch) | |
tree | 76e6b26fde222fe1b310fb184ad37360b12bd087 /iw/account_gui.py | |
parent | f31b24dc30e0d87a4fbe23108277c841b6102a66 (diff) | |
download | anaconda-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.py | 4 |
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 |