diff options
author | Mike Fulbright <msf@redhat.com> | 2000-05-16 22:15:52 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-05-16 22:15:52 +0000 |
commit | 3ec73d04fd2d331fe819f00a05269882b7b31183 (patch) | |
tree | 9688bbc126d4f14213fe73148fa88f0e33352793 /textw/userauth_text.py | |
parent | ef22ac8fcab3bbca19af21b13da3ba80db49a2c3 (diff) | |
download | anaconda-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.py | 3 |
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 " |