diff --git a/data/web/admin.php b/data/web/admin.php
index 660b9051..292c996c 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 3bcb2ac4..cb0e5784 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 . "'";