Browse Source

[Web] Remove debugging points

andryyy 4 years ago
parent
commit
eb1d5dd134
2 changed files with 1 additions and 9 deletions
  1. 0 8
      data/web/inc/functions.fail2ban.inc.php
  2. 1 1
      data/web/inc/functions.inc.php

+ 0 - 8
data/web/inc/functions.fail2ban.inc.php

@@ -133,14 +133,6 @@ function fail2ban($_action, $_data = null) {
               $redis->Set('F2B_REGEX', json_encode($regex_array, JSON_UNESCAPED_SLASHES));
             }
           }
-          else {
-            $_SESSION['return'][] = array(
-              'type' => 'success',
-              'log' => array(__FUNCTION__, $_action, $_data_log),
-              'msg' => print_r($_data, true)
-            );
-            return false;
-          }
           $_SESSION['return'][] = array(
             'type' => 'success',
             'log' => array(__FUNCTION__, $_action, $_data_log),

+ 1 - 1
data/web/inc/functions.inc.php

@@ -155,7 +155,7 @@ function password_complexity($_action, $_data = null) {
       $_SESSION['return'][] = array(
         'type' => 'success',
         'log' => array(__FUNCTION__, $_action, $_data),
-        'msg' => print_r($_data, true)
+        'msg' => 'password_policy_saved'
       );
     break;
     case 'get':