mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Replace calls to xorm UseBool with Where (#2237)
This commit is contained in:
		@@ -677,7 +677,7 @@ func UserSignIn(username, password string) (*User, error) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sources := make([]*LoginSource, 0, 5)
 | 
			
		||||
	if err = x.UseBool().Find(&sources, &LoginSource{IsActived: true}); err != nil {
 | 
			
		||||
	if err = x.Where("is_actived = ?", true).Find(&sources); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user