summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-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