1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

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