Finish create new label

This commit is contained in:
Unknown 2014-05-18 18:07:04 -04:00
parent a4c3ab48a5
commit 93f8f92523
8 changed files with 106 additions and 23 deletions

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
}