mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix #580
This commit is contained in:
		@@ -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
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user