Skip to content

Commit

Permalink
fix 用户返回信息会出现password字段,虽然是加密过的字段,但依旧存在安全隐患。故隐藏。
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaBaoFa committed Jul 5, 2024
1 parent 1743b03 commit d7d9d5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/System/Model/SystemUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class SystemUser extends MineModel
*/
protected ?string $table = 'system_user';

/**
* 隐藏的字段列表.
* @var string[]
*/
protected array $hidden = ['password', 'deleted_at'];

/**
* The attributes that are mass assignable.
*/
Expand Down

0 comments on commit d7d9d5e

Please sign in to comment.