forked from leftypol/leftypol
don't syslog() login attempts unless ['syslog'] is enabled
This commit is contained in:
parent
a08f93b71f
commit
825317ec38
1 changed files with 2 additions and 1 deletions
3
mod.php
3
mod.php
|
@ -33,7 +33,8 @@
|
||||||
|
|
||||||
|
|
||||||
if(!login($_POST['username'], $_POST['password'])) {
|
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);
|
loginForm($config['error']['invalid'], $_POST['username'], '?' . $query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue