mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-12 06:57:13 +08:00
fix: 用户邮箱信息增加脱敏处理
This commit is contained in:
@@ -134,6 +134,10 @@ public class UserInfoVO implements Serializable {
|
||||
@Schema(description = "角色编码集合", example = "[\"test\"]")
|
||||
private Set<String> roles;
|
||||
|
||||
public String getEmail() {
|
||||
return DesensitizedUtil.email(email);
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return DesensitizedUtil.mobilePhone(phone);
|
||||
}
|
||||
|
@@ -96,15 +96,16 @@ public class UserVO extends BaseVO {
|
||||
@Schema(description = "描述", example = "张三描述信息")
|
||||
private String description;
|
||||
|
||||
public String getEmail() {
|
||||
return DesensitizedUtil.email(email);
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return DesensitizedUtil.mobilePhone(phone);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean getDisabled() {
|
||||
return this.getIsSystem() || Objects.equals(this.getId(), LoginHelper.getUserId());
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
if (null == phone) {
|
||||
return null;
|
||||
}
|
||||
return DesensitizedUtil.mobilePhone(phone);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user