summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-17 21:54:10 +0000
committerErmal <eri@pfsense.org>2010-06-17 21:54:10 +0000
commit80b292f3d886430cf6a2fb0c34d460125c94ee5b (patch)
treee754db79acc882379b1a1e33b6b169680c610811 /etc
parent8aede55b43d5f484c7708c5998b8432b3c5c3667 (diff)
downloadpfsense-80b292f3d886430cf6a2fb0c34d460125c94ee5b.zip
pfsense-80b292f3d886430cf6a2fb0c34d460125c94ee5b.tar.gz
Do not include functions.inc just for pfSenseHeader which is not really the best place to use!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index e358827..f9b9d21 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1098,12 +1098,14 @@ function session_auth() {
$_SESSION['Username'] = $_POST['usernamefld'];
$_SESSION['last_access'] = time();
log_error("Successful login for user '{$_POST['usernamefld']}' from: {$_SERVER['REMOTE_ADDR']}");
- require_once("functions.inc");
$HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username'];
if (isset($_POST['postafterlogin']))
return true;
- else
- pfSenseHeader("/{$page}");
+ else {
+ if (empty($page))
+ $page = "/";
+ header("Location: {$page}");
+ }
exit;
} else {
/* give the user an error message */
OpenPOWER on IntegriCloud