Hide a users email everywhere #69

Merged
konrad merged 5 commits from feature/hide-email into master 2019-04-01 18:19:57 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit 23dada3530 - Show all commits

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() {}