fix: don't return email addresses from user search results

This commit is contained in:
kolaente 2022-08-02 15:02:15 +02:00
parent c51ee94ad1
commit 3688bbde20
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ func ListUsers(s *xorm.Session, search string, opts *ListUserOpts) (users []*Use
err = s.
Where(cond).
Find(&users)
for _, u := range users {
u.Email = ""
}
return
}