diff --git a/data/web/admin.php b/data/web/admin.php index 660b90514..292c996c6 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -40,7 +40,7 @@ $tfa_data = get_tfa();
- +
@@ -522,7 +522,7 @@ $tfa_data = get_tfa(); - + diff --git a/data/web/json_api.php b/data/web/json_api.php index 3bcb2ac44..cb0e57841 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -25,6 +25,11 @@ function api_log($postarray) { } if ($value = json_decode($value, true)) { unset($value["csrf_token"]); + foreach ($value as $key => &$val) { + if(preg_match("/pass/i", $key)) { + $val = '********'; + } + } $value = json_encode($value); } $data_var[] = $data . "='" . $value . "'";