diff options
author | jim-p <jimp@pfsense.org> | 2011-08-31 14:37:44 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-08-31 14:37:44 -0400 |
commit | a2e90569ab481bc85f5b3be7a01cc1608b3d065a (patch) | |
tree | 555c3b70d991fb67511501bbf5606456a06939e8 /etc | |
parent | ff99a638e106a1ebeadba8f6c46b5967d84d0869 (diff) | |
download | pfsense-a2e90569ab481bc85f5b3be7a01cc1608b3d065a.zip pfsense-a2e90569ab481bc85f5b3be7a01cc1608b3d065a.tar.gz |
If a user's browser does not support cookies, print an error on the login form telling them so.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/authgui.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc index 8c9e3fa..dec0ad2 100644 --- a/etc/inc/authgui.inc +++ b/etc/inc/authgui.inc @@ -192,6 +192,10 @@ if($config['virtualip']) foreach($config['virtualip']['vip'] as $vip) if($vip['subnet'] == $http_host) $local_ip = true; + +setcookie("cookie_test", time() + 3600); +$have_cookies = isset($_COOKIE["cookie_test"]); + ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" @@ -255,6 +259,13 @@ if($config['virtualip']) <span style="text-align:center; font-weight: normal ; font-style: italic"> <?=gettext("Enter username and password to login."); ?> </span> + + <? if (!$have_cookies): ?> + <br/><br/> + <span style="text-align:center; font-weight: normal ; font-style: italic; color: #ff0000"> + <?= gettext("Your browser must support cookies to login."); ?> + </span> + <? endif; ?> </p> <p> <span style="text-align:center"> |