summaryrefslogtreecommitdiffstats
path: root/models/login.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-11 20:18:57 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-11 20:18:57 +0800
commitf68e279150b8c58a0c5ffeea44fe1a613031e58b (patch)
tree3afed9069f91ecbcfa5d5b129d091a70bef6408c /models/login.go
parent70398ed01a4f1715831864613b894ad2ba0e98f7 (diff)
downloadgitea-f68e279150b8c58a0c5ffeea44fe1a613031e58b.tar.gz
gitea-f68e279150b8c58a0c5ffeea44fe1a613031e58b.zip
spell bug fixed
Diffstat (limited to 'models/login.go')
-rw-r--r--models/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go
index 92d1a3620b..313880df53 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