Remove redundant syslog command
This commit is contained in:
@@ -418,7 +418,6 @@
|
|||||||
if (strlen($provision['password']) > 0) {
|
if (strlen($provision['password']) > 0) {
|
||||||
//deny access if the password doesn't match
|
//deny access if the password doesn't match
|
||||||
if ($provision['password'] != check_str($_REQUEST['password'])) {
|
if ($provision['password'] != check_str($_REQUEST['password'])) {
|
||||||
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR']."] provision attempt bad password for ".check_str($_REQUEST['mac']));
|
|
||||||
//log the failed auth attempt to the system, to be available for fail2ban.
|
//log the failed auth attempt to the system, to be available for fail2ban.
|
||||||
openlog('FusionPBX', LOG_NDELAY, LOG_AUTH);
|
openlog('FusionPBX', LOG_NDELAY, LOG_AUTH);
|
||||||
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR']."] provision attempt bad password for ".check_str($_REQUEST['mac']));
|
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR']."] provision attempt bad password for ".check_str($_REQUEST['mac']));
|
||||||
|
|||||||
Reference in New Issue
Block a user