summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;