diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-11 20:18:57 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-11 20:18:57 +0800 |
commit | f68e279150b8c58a0c5ffeea44fe1a613031e58b (patch) | |
tree | 3afed9069f91ecbcfa5d5b129d091a70bef6408c | |
parent | 70398ed01a4f1715831864613b894ad2ba0e98f7 (diff) | |
download | gitea-f68e279150b8c58a0c5ffeea44fe1a613031e58b.tar.gz gitea-f68e279150b8c58a0c5ffeea44fe1a613031e58b.zip |
spell bug fixed
-rw-r--r-- | models/login.go | 4 | ||||
-rw-r--r-- | routers/admin/auths.go | 4 | ||||
-rw-r--r-- | templates/admin/auths/edit.tmpl | 2 |
3 files changed, 5 insertions, 5 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 diff --git a/routers/admin/auths.go b/routers/admin/auths.go index 68fef21e8a..495acefda9 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -67,7 +67,7 @@ func NewAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) { Type: form.Type, Name: form.AuthName, IsActived: true, - AllowAutoRegisted: form.AllowAutoRegister, + AllowAutoRegister: form.AllowAutoRegister, Cfg: u, } @@ -140,7 +140,7 @@ func EditAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) { Name: form.AuthName, IsActived: form.IsActived, Type: form.Type, - AllowAutoRegisted: form.AllowAutoRegister, + AllowAutoRegister: form.AllowAutoRegister, Cfg: config, } diff --git a/templates/admin/auths/edit.tmpl b/templates/admin/auths/edit.tmpl index 56c4db74aa..9ebc0aa4c4 100644 --- a/templates/admin/auths/edit.tmpl +++ b/templates/admin/auths/edit.tmpl @@ -124,7 +124,7 @@ <div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}"> <label class="col-md-3 control-label">Auto Register: </label> <div class="col-md-7"> - <input name="allowautoregister" type="checkbox" class="form-control" {{if .Source.AllowAutoRegisted}}checked{{end}}> + <input name="allowautoregister" type="checkbox" class="form-control" {{if .Source.AllowAutoRegister}}checked{{end}}> </div> </div> |