summaryrefslogtreecommitdiff
path: root/swat/login.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-22 07:21:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:56 -0500
commit0b650edc83b8e5d686b2c1d66b464e85e0bf16ca (patch)
treee8c378cf3dc0d7698a35802e52dde5b129262eeb /swat/login.esp
parente95fbd6db21624f56defd7d85aaff77bc6d02550 (diff)
downloadsamba-0b650edc83b8e5d686b2c1d66b464e85e0bf16ca.tar.gz
samba-0b650edc83b8e5d686b2c1d66b464e85e0bf16ca.tar.bz2
samba-0b650edc83b8e5d686b2c1d66b464e85e0bf16ca.zip
r8708: fixed an assert that abartlet found
(This used to be commit f5e6547c28b2069ae80da5037c5f8d0661da652c)
Diffstat (limited to 'swat/login.esp')
-rw-r--r--swat/login.esp4
1 files changed, 3 insertions, 1 deletions
diff --git a/swat/login.esp b/swat/login.esp
index 257567d267..67fd45f8c0 100644
--- a/swat/login.esp
+++ b/swat/login.esp
@@ -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;