summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 908b380..c1a9ba5 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1086,7 +1086,10 @@ function session_auth() {
$_SESSION['last_access'] = time();
log_error("Successful login for user '{$_POST['usernamefld']}' from: {$_SERVER['REMOTE_ADDR']}");
require_once("functions.inc");
- pfSenseHeader("/{$page}");
+ if (isset($_POST['postafterlogin']))
+ return true;
+ else
+ pfSenseHeader("/{$page}");
} else {
/* give the user an error message */
$_SESSION['Login_Error'] = "Username or Password incorrect";
OpenPOWER on IntegriCloud