fix:敏感字段监控记录 password 字段时的脱敏处理 !60

This commit is contained in:
zhuxbo 2022-10-18 06:56:44 +00:00 committed by 妙码生花
parent 4c6d1a153a
commit b8330d6140

View File

@ -98,6 +98,11 @@ class Security
continue;
}
// 如果字段名中包含 password 且修改值不为空,则设置密码记录为 ******
if (stripos('password', $field) !== false && $newData[$field] !== '') {
$newData[$field] = "******";
}
$sensitiveDataLog[] = [
'admin_id' => $adminId,
'sensitive_id' => $sensitiveData['id'],