r8708: fixed an assert that abartlet found
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 Jul 2005 07:21:59 +0000 (07:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:56 +0000 (13:29 -0500)
(This used to be commit f5e6547c28b2069ae80da5037c5f8d0661da652c)

swat/login.esp

index 257567d267186b1af75e51f7b2b921f2579871df..67fd45f8c0a94e34a118e9ab57c4f3f8926dbb66 100644 (file)
@@ -29,7 +29,9 @@ display_form(f);
                authinfo.rhost = request['REMOTE_HOST'];
 
                auth = userAuth(authinfo);
-               if (auth.result) {
+               if (auth == undefined) {
+                       write("<b>Invalid login - please try again<br /></b>\n");
+               } else if (auth.result) {
 
                        /* for now just authenticate everyone */
                        session.AUTHENTICATED = true;