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 {
} 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
Type: form.Type,
Name: form.AuthName,
IsActived: true,
- AllowAutoRegisted: form.AllowAutoRegister,
+ AllowAutoRegister: form.AllowAutoRegister,
Cfg: u,
}
Name: form.AuthName,
IsActived: form.IsActived,
Type: form.Type,
- AllowAutoRegisted: form.AllowAutoRegister,
+ AllowAutoRegister: form.AllowAutoRegister,
Cfg: config,
}
<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>