diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-03 20:17:20 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-03 20:17:20 -0500 |
commit | c9dddd598b6851ed266980c87ee5770b31979a34 (patch) | |
tree | a2c7a40ce8f28c3ec3b82ae0b9b6850921656bf8 | |
parent | 6af7c40b296e0f95ec308d41aea55b3306c5e1ee (diff) | |
download | pfsense-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.
-rw-r--r-- | etc/inc/auth.inc | 2 | ||||
-rw-r--r-- | etc/inc/authgui.inc | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 753d041..2ae160e 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -885,8 +885,6 @@ 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 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; } |