diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 18:46:42 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 18:46:42 +1100 |
| commit | 825317ec381ae3f28f814f66e380945e77f48982 (patch) | |
| tree | 09d49c4493a36b39e0696e51d8fb42743adbeb71 | |
| parent | a08f93b71f878bf3a4e4ad711dc5168eeafa9c08 (diff) | |
don't syslog() login attempts unless ['syslog'] is enabled
| -rw-r--r-- | mod.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |
