diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/login.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go index 92d1a362..313880df 100644 --- a/models/login.go +++ b/models/login.go @@ -77,7 +77,7 @@ type LoginSource struct { Cfg core.Conversion `xorm:"TEXT"` Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` - AllowAutoRegisted bool `xorm:"not null default false"` + AllowAutoRegister bool `xorm:"not null default false"` } func (source *LoginSource) TypeString() string { @@ -180,7 +180,7 @@ func LoginUser(uname, passwd string) (*User, error) { } else { if !has { var sources []LoginSource - cond := &LoginSource{IsActived: true, AllowAutoRegisted: true} + cond := &LoginSource{IsActived: true, AllowAutoRegister: true} err = orm.UseBool().Find(&sources, cond) if err != nil { return nil, err |