summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-06 18:46:42 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-06 18:46:42 +1100
commit825317ec381ae3f28f814f66e380945e77f48982 (patch)
tree09d49c4493a36b39e0696e51d8fb42743adbeb71 /mod.php
parenta08f93b71f878bf3a4e4ad711dc5168eeafa9c08 (diff)
don't syslog() login attempts unless ['syslog'] is enabled
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 36c7a2f8..5822e3b5 100644
--- a/mod.php
+++ b/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);
}