summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-05 17:41:52 +0000
committerMatt Wilson <msw@redhat.com>2000-01-05 17:41:52 +0000
commitac1f9101f72bdf87f0d1882fa68b579252b8d25a (patch)
tree31880aee45b7f4aa96166533d18131302a03e184
parent5822939746eedacf9d20b8f59ac9ee106469f603 (diff)
downloadanaconda-ac1f9101f72bdf87f0d1882fa68b579252b8d25a.tar.gz
anaconda-ac1f9101f72bdf87f0d1882fa68b579252b8d25a.tar.xz
anaconda-ac1f9101f72bdf87f0d1882fa68b579252b8d25a.zip
check for blank user ids
-rw-r--r--textw/userauth.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/textw/userauth.py b/textw/userauth.py
index 795a1fede..d456ce1be 100644
--- a/textw/userauth.py
+++ b/textw/userauth.py
@@ -73,7 +73,6 @@ class UsersWindow:
title = _("Add User")
while 1:
-
(rc, ent) = EntryWindow (self.screen, title, text,
[ (_("User ID"), userid),
(_("Full Name"), fullname),
@@ -87,6 +86,11 @@ class UsersWindow:
not len(userid.value()) and not len(fullname.value()):
return INSTALL_OK
+ if not userid.value ():
+ ButtonChoiceWindow(self.screen, _("Missing User ID"),
+ _("You must provide a user ID"),
+ buttons = [ _("OK") ], width = 50)
+ continue
if len (pass1.value ()) < 6:
ButtonChoiceWindow(self.screen, _("Password Length"),
_("The password must be at least 6 characters "