From ebc429c831d3477002de96fe5c6d138aa9ecea87 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 21 Aug 2002 06:07:02 +0000 Subject: oops, don't let passwords of less than six chars be added (#72006) --- iw/account_gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iw/account_gui.py') 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 -- cgit