]> source.dussan.org Git - gitea.git/commitdiff
spell bug fixed
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 11 May 2014 12:18:57 +0000 (20:18 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Sun, 11 May 2014 12:18:57 +0000 (20:18 +0800)
models/login.go
routers/admin/auths.go
templates/admin/auths/edit.tmpl

index 92d1a3620be73de9df3163b78991e1111d75e23a..313880df53e9dda61162c0c391b3a961deb2f97e 100644 (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
index 68fef21e8aaec61ecb1b3f5785512d699059d836..495acefda942580a7783342464eb9fd45e0a96f2 100644 (file)
@@ -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,
        }
 
index 56c4db74aa0127bd1ceeffd81ea0d0b53c598c25..9ebc0aa4c4578d2c3eda6a8690132714888657b2 100644 (file)
                     <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>