summaryrefslogtreecommitdiffstats
path: root/models/login_source.go
diff options
context:
space:
mode:
authorG <guillaume.dube.girard@gmail.com>2017-08-01 01:47:31 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-08-01 13:47:31 +0800
commit66e8262530fb7906a3f8f5933fd6dbd6152bf898 (patch)
treed596a9572d8a345224a5a1cc3334887cdff99a1a /models/login_source.go
parent31411a9462533abb0ca0866c2dccfd9b1ddf553e (diff)
downloadgitea-66e8262530fb7906a3f8f5933fd6dbd6152bf898.tar.gz
gitea-66e8262530fb7906a3f8f5933fd6dbd6152bf898.zip
Replace calls to xorm UseBool with Where (#2237)
Diffstat (limited to 'models/login_source.go')
-rw-r--r--models/login_source.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/login_source.go b/models/login_source.go
index 2e70228c9a..e4dc77714c 100644
--- a/models/login_source.go
+++ b/models/login_source.go
@@ -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
}