1
0
Fork 0
forked from forgejo/forgejo

Replace calls to xorm UseBool with Where (#2237)

This commit is contained in:
G 2017-08-01 01:47:31 -04:00 committed by Lunny Xiao
parent 31411a9462
commit 66e8262530
2 changed files with 4 additions and 9 deletions

View file

@ -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
}