summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-18 23:39:13 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-18 23:39:13 +1100
commit3e28328dc9b064efc8a03000c82b4e05ac4148eb (patch)
tree5ceef08efa9c35bbbb50e6804a75301093bd64c1 /mod.php
parenta37a14a398261e80409ca4218e273fbff5170598 (diff)
syslog()
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index c2b3705e..f3d1d6c7 100644
--- a/mod.php
+++ b/mod.php
@@ -36,8 +36,10 @@
) loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
- if(!login($_POST['username'], $_POST['password']))
+ if(!login($_POST['username'], $_POST['password'])) {
+ _syslog(LOG_WARNING, 'Unauthorized login attempt!');
loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
+ }
modLog("Logged in.");