0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 14:44:12 +01:00

Remove email from user search

This commit is contained in:
Odin Ugedal 2016-03-15 19:44:58 +01:00
parent 3253e3c5aa
commit 6ccb2d36cf

View file

@ -1142,7 +1142,6 @@ func SearchUserByName(opts *SearchUserOptions) (users []*User, _ int64, _ error)
// Append conditions // Append conditions
sess := x.Where("lower_name like ?", searchQuery). sess := x.Where("lower_name like ?", searchQuery).
Or("full_name like ?", searchQuery). Or("full_name like ?", searchQuery).
Or("email like ?", searchQuery).
And("type = ?", opts.Type) And("type = ?", opts.Type)
var countSess xorm.Session var countSess xorm.Session