Finish create new label

This commit is contained in:
Unknown committed 2014-05-18 18:07:04 -04:00
1 parent a4c3ab48a5
commit 93f8f92523
8 files changed
+106 -23

No files matched your search

+2 -3
View File
@@ -185,9 +185,8 @@ func LoginUser(uname, passwd string) (*User, error) {
} else {
if !has {
var sources []LoginSource
cond := &LoginSource{IsActived: true, AllowAutoRegister: true}
err = orm.UseBool().Find(&sources, cond)
if err != nil {
if err = orm.UseBool().Find(&sources,
&LoginSource{IsActived: true, AllowAutoRegister: true}); err != nil {
return nil, err
}