Added afterLoad to remove user emails
continuous-integration/drone/push Build is running Details

This commit is contained in:
konrad 2019-04-01 20:02:02 +02:00
parent ac5446e4f5
commit 23dada3530
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ type User struct {
web.Auth `xorm:"-" json:"-"`
}
// AfterLoad is used to delete all emails to not have them leaked to the user
func (u *User) AfterLoad() {
u.Email = ""
}
// AuthDummy implements the auth of the crud handler
func (User) AuthDummy() {}