summaryrefslogtreecommitdiffstats
path: root/textw/userauth_text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-05-16 22:15:52 +0000
committerMike Fulbright <msf@redhat.com>2000-05-16 22:15:52 +0000
commit3ec73d04fd2d331fe819f00a05269882b7b31183 (patch)
tree9688bbc126d4f14213fe73148fa88f0e33352793 /textw/userauth_text.py
parentef22ac8fcab3bbca19af21b13da3ba80db49a2c3 (diff)
downloadanaconda-3ec73d04fd2d331fe819f00a05269882b7b31183.tar.gz
anaconda-3ec73d04fd2d331fe819f00a05269882b7b31183.tar.xz
anaconda-3ec73d04fd2d331fe819f00a05269882b7b31183.zip
fix bug #11386 - crash if userid blank and passwds valid
Diffstat (limited to 'textw/userauth_text.py')
-rw-r--r--textw/userauth_text.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/textw/userauth_text.py b/textw/userauth_text.py
index eaa87aba7..c62186a54 100644
--- a/textw/userauth_text.py
+++ b/textw/userauth_text.py
@@ -86,11 +86,12 @@ class UsersWindow:
if rc == "cancel":
return INSTALL_BACK
+
if not len(pass1.value()) and not len(pass2.value()) and \
not len(userid.value()) and not len(fullname.value()):
return INSTALL_OK
- if (not iutil.validUser(userid.value())):
+ if (not len(userid.value()) or not iutil.validUser(userid.value())):
ButtonChoiceWindow(self.screen, _("Bad User ID"),
_("User IDs must be less than 8 "
"characters and contain only characters "