summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 20:17:20 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 20:17:20 -0500
commitc9dddd598b6851ed266980c87ee5770b31979a34 (patch)
treea2c7a40ce8f28c3ec3b82ae0b9b6850921656bf8 /etc/inc/authgui.inc
parent6af7c40b296e0f95ec308d41aea55b3306c5e1ee (diff)
downloadpfsense-c9dddd598b6851ed266980c87ee5770b31979a34.zip
pfsense-c9dddd598b6851ed266980c87ee5770b31979a34.tar.gz
Revert "Redirect to / when logging in to avoid posting to forms accidently and clearing the form and causing all kinds of chaos. Ticket #161"
This reverts commit 6af7c40b296e0f95ec308d41aea55b3306c5e1ee.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index dcaa3d5..6fa3cfa 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -85,7 +85,6 @@ if (!isAllowedPage($_SERVER['SCRIPT_NAME'], $_SESSION['Username'])) {
if (count($allowedpages) > 0) {
$page = str_replace('*', '', $allowedpages[0]);
$_SESSION['Post_Login'] = true;
- require_once("functions.inc");
pfSenseHeader("/{$page}");
exit;
} else {
@@ -100,8 +99,7 @@ if (!isAllowedPage($_SERVER['SCRIPT_NAME'], $_SESSION['Username'])) {
* taking action in reponse to a POST request
*/
if (!$_SESSION['Post_Login']) {
- $_SESSION['Post_Login'] = true;
- require_once("functions.inc");
+ $_SESSION['Post_Login'] = true;
pfSenseHeader($_SERVER['REQUEST_URI']);
exit;
}
OpenPOWER on IntegriCloud