forked from leftypol/leftypol
syslog()
This commit is contained in:
parent
a37a14a398
commit
3e28328dc9
4 changed files with 31 additions and 7 deletions
4
mod.php
4
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.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue