summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 20:31:23 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 20:31:23 -0500
commit5c15e649a1644613c4660e618bda7a8e13db711d (patch)
treed25f66278f69c515fff88dca9a5ae010441fa8c8
parentc9dddd598b6851ed266980c87ee5770b31979a34 (diff)
downloadpfsense-5c15e649a1644613c4660e618bda7a8e13db711d.zip
pfsense-5c15e649a1644613c4660e618bda7a8e13db711d.tar.gz
Recommit #161 changes. It appears a different commit has broken firewall rules edit and firewall nat edit.
-rw-r--r--etc/inc/auth.inc2
-rw-r--r--etc/inc/authgui.inc2
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 2ae160e..753d041 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -885,6 +885,8 @@ function session_auth($backing) {
$_SESSION['Username'] = $_POST['usernamefld'];
$_SESSION['last_access'] = time();
log_error("Successful login for user '{$_POST['usernamefld']}' from: {$_SERVER['REMOTE_ADDR']}");
+ require_once("functions.inc");
+ pfSenseHeader("/{$page}");
}
}
} else {
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 6fa3cfa..3f7c216 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -85,6 +85,7 @@ 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,6 +101,7 @@ if (!isAllowedPage($_SERVER['SCRIPT_NAME'], $_SESSION['Username'])) {
*/
if (!$_SESSION['Post_Login']) {
$_SESSION['Post_Login'] = true;
+ require_once("functions.inc");
pfSenseHeader($_SERVER['REQUEST_URI']);
exit;
}
OpenPOWER on IntegriCloud