Browse Source

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

pull/40/head
Savetheinternet 13 years ago
parent
commit
825317ec38
  1. 3
      mod.php

3
mod.php

@ -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);
}

Loading…
Cancel
Save