1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknwon 2014-11-30 02:26:29 -05:00
parent b6437b5a4c
commit d75013a0e8
10 changed files with 65 additions and 13 deletions

View file

@ -628,7 +628,6 @@ func GetUserByEmail(email string) (*User, error) {
// SearchUserByName returns given number of users whose name contains keyword.
func SearchUserByName(opt SearchOption) (us []*User, err error) {
opt.Keyword = FilterSQLInject(opt.Keyword)
if len(opt.Keyword) == 0 {
return us, nil
}