From 0041092cbfaf82bc12b3448c29e1087de6abe7aa Mon Sep 17 00:00:00 2001
From: jim-p
Date: Wed, 31 Aug 2011 14:46:21 -0400
Subject: If a user's browser does not support cookies, print an error on the
login form telling them so.
Conflicts:
etc/inc/authgui.inc
---
etc/inc/authgui.inc | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index d491927..6b7fbd8 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -198,6 +198,9 @@ if($config['virtualip']) {
}
}
}
+setcookie("cookie_test", time() + 3600);
+$have_cookies = isset($_COOKIE["cookie_test"]);
+
?>
=gettext("Enter username and password to login."); ?>
+
+ if (!$have_cookies): ?>
+
+
+ = gettext("Your browser must support cookies to login."); ?>
+
+ endif; ?>
@@ -274,4 +284,4 @@ if($config['virtualip']) {
+?>
\ No newline at end of file
--
cgit v1.1