1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

spell bug fixed

This commit is contained in:
Lunny Xiao
2014-05-11 20:18:57 +08:00
parent 70398ed01a
commit f68e279150
3 changed files with 5 additions and 5 deletions

View File

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