don't syslog() login attempts unless ['syslog'] is enabled

This commit is contained in:
Savetheinternet 2011-12-06 18:46:42 +11:00
parent a08f93b71f
commit 825317ec38

View File

@ -33,6 +33,7 @@
if(!login($_POST['username'], $_POST['password'])) {
if($config['syslog'])
_syslog(LOG_WARNING, 'Unauthorized login attempt!');
loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
}