summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-03-02 08:47:46 +0100
committersmos <seth.mos@dds.nl>2011-03-02 08:47:46 +0100
commit4fc3855f17915c5e3f2026188807552d6ac32407 (patch)
tree7fceecbb81306582705fb3be091fde410cd4632f /etc
parent829fa12ed525127cdfe8f7c5eca443af31de9564 (diff)
downloadpfsense-4fc3855f17915c5e3f2026188807552d6ac32407.zip
pfsense-4fc3855f17915c5e3f2026188807552d6ac32407.tar.gz
Make it possible to turn off successful login messages, this should quiet the console, system logs
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 805ea44..159e791 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1216,7 +1216,9 @@ function session_auth() {
$_SESSION['Logged_In'] = "True";
$_SESSION['Username'] = $_POST['usernamefld'];
$_SESSION['last_access'] = time();
- log_auth("Successful webConfigurator login for user '{$_POST['usernamefld']}' from {$_SERVER['REMOTE_ADDR']}");
+ if(! isset($config['system']['webgui']['quietlogin'])) {
+ log_auth("Successful webConfigurator login for user '{$_POST['usernamefld']}' from {$_SERVER['REMOTE_ADDR']}");
+ }
$HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username'];
if (isset($_POST['postafterlogin']))
return true;
OpenPOWER on IntegriCloud