mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-10 02:34:04 +09: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