diff options
author | jim-p <jimp@pfsense.org> | 2011-09-02 13:03:33 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-09-02 13:03:33 -0400 |
commit | 4fbc8429be6b84630ab66b2da305799fa3ec8996 (patch) | |
tree | 9db6269fbdd7d4322512c5a26474576a6827ba51 /etc/inc/authgui.inc | |
parent | 399ccb4d91869ccb7161b0f41d691a790fc236b3 (diff) | |
download | pfsense-4fbc8429be6b84630ab66b2da305799fa3ec8996.zip pfsense-4fbc8429be6b84630ab66b2da305799fa3ec8996.tar.gz |
Only do cookie check if the form has already been posted. The cookie check is not accurate for the first page load after a browser has been opened, has to be at least one refresh/post first.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r-- | etc/inc/authgui.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc index 6b7fbd8..4d2f953 100644 --- a/etc/inc/authgui.inc +++ b/etc/inc/authgui.inc @@ -265,7 +265,7 @@ $have_cookies = isset($_COOKIE["cookie_test"]); <?=gettext("Enter username and password to login."); ?> </span> - <? if (!$have_cookies): ?> + <? if (!$have_cookies && isset($_POST['login'])): ?> <br/><br/> <span style="text-align:center; font-weight: normal ; font-style: italic; color: #ff0000"> <?= gettext("Your browser must support cookies to login."); ?> |