diff options
author | jim-p <jimp@pfsense.org> | 2011-08-31 14:46:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-08-31 14:46:39 -0400 |
commit | 0041092cbfaf82bc12b3448c29e1087de6abe7aa (patch) | |
tree | 72278178e9df47d374f5adbfe54463062a3f0f6d /etc/inc/authgui.inc | |
parent | baf9fdcae6b52cac8a81c6d5c93e1a09997af625 (diff) | |
download | pfsense-0041092cbfaf82bc12b3448c29e1087de6abe7aa.zip pfsense-0041092cbfaf82bc12b3448c29e1087de6abe7aa.tar.gz |
If a user's browser does not support cookies, print an error on the login form telling them so.
Conflicts:
etc/inc/authgui.inc
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r-- | etc/inc/authgui.inc | 12 |
1 files changed, 11 insertions, 1 deletions
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"]); + ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" @@ -261,6 +264,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"> @@ -274,4 +284,4 @@ if($config['virtualip']) { <?php } // end function -?> +?>
\ No newline at end of file |