forked from forgejo/forgejo
Replace calls to xorm UseBool with Where (#2237)
This commit is contained in:
parent
31411a9462
commit
66e8262530
2 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue