summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-20 21:14:25 +0000
committerErmal <eri@pfsense.org>2010-04-20 21:14:25 +0000
commit921406213ffc27ef3806500694c27b3c767e4e00 (patch)
tree067cbf62ee67a6b74aeb99d93a70286942baf061
parent68d0b70a5a4436d6de8016ade7aa7dc456db7b25 (diff)
downloadpfsense-921406213ffc27ef3806500694c27b3c767e4e00.zip
pfsense-921406213ffc27ef3806500694c27b3c767e4e00.tar.gz
Allow users to send in the same POST authentication info and post fields. This will be allowed by authentication code if the special post var 'postafterlogin' isset.
-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