fix: mask user in get-account response (#1450)

This commit is contained in:
June 2023-01-04 17:40:36 +07:00 committed by GitHub
parent 1f39027b78
commit ddb5e26fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ func (c *ApiController) GetAccount() {
Status: "ok", Status: "ok",
Sub: user.Id, Sub: user.Id,
Name: user.Name, Name: user.Name,
Data: user, Data: object.GetMaskedUser(user),
Data2: organization, Data2: organization,
} }
c.Data["json"] = resp c.Data["json"] = resp