mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 07:04:24 +00:00
fix:敏感字段监控记录 password 字段时的脱敏处理 !60
This commit is contained in:
parent
4c6d1a153a
commit
b8330d6140
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user