don't syslog() login attempts unless ['syslog'] is enabled
This commit is contained in:
parent
a08f93b71f
commit
825317ec38
1
mod.php
1
mod.php
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
|
|
||||||
if(!login($_POST['username'], $_POST['password'])) {
|
if(!login($_POST['username'], $_POST['password'])) {
|
||||||
|
if($config['syslog'])
|
||||||
_syslog(LOG_WARNING, 'Unauthorized login attempt!');
|
_syslog(LOG_WARNING, 'Unauthorized login attempt!');
|
||||||
loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
|
loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user