summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-09-02 13:03:33 -0400
committerjim-p <jimp@pfsense.org>2011-09-02 13:03:33 -0400
commit4fbc8429be6b84630ab66b2da305799fa3ec8996 (patch)
tree9db6269fbdd7d4322512c5a26474576a6827ba51
parent399ccb4d91869ccb7161b0f41d691a790fc236b3 (diff)
downloadpfsense-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.
-rw-r--r--etc/inc/authgui.inc2
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."); ?>
OpenPOWER on IntegriCloud