Browse Source

[Web] Remove debugging points

andryyy 4 năm trước cách đây
mục cha
commit
eb1d5dd134

+ 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));
               $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(
           $_SESSION['return'][] = array(
             'type' => 'success',
             'type' => 'success',
             'log' => array(__FUNCTION__, $_action, $_data_log),
             '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(
       $_SESSION['return'][] = array(
         'type' => 'success',
         'type' => 'success',
         'log' => array(__FUNCTION__, $_action, $_data),
         'log' => array(__FUNCTION__, $_action, $_data),
-        'msg' => print_r($_data, true)
+        'msg' => 'password_policy_saved'
       );
       );
     break;
     break;
     case 'get':
     case 'get':