mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
spell bug fixed
This commit is contained in:
parent
70398ed01a
commit
f68e279150
3 changed files with 5 additions and 5 deletions
|
@ -77,7 +77,7 @@ type LoginSource struct {
|
||||||
Cfg core.Conversion `xorm:"TEXT"`
|
Cfg core.Conversion `xorm:"TEXT"`
|
||||||
Created time.Time `xorm:"created"`
|
Created time.Time `xorm:"created"`
|
||||||
Updated time.Time `xorm:"updated"`
|
Updated time.Time `xorm:"updated"`
|
||||||
AllowAutoRegisted bool `xorm:"not null default false"`
|
AllowAutoRegister bool `xorm:"not null default false"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (source *LoginSource) TypeString() string {
|
func (source *LoginSource) TypeString() string {
|
||||||
|
@ -180,7 +180,7 @@ func LoginUser(uname, passwd string) (*User, error) {
|
||||||
} else {
|
} else {
|
||||||
if !has {
|
if !has {
|
||||||
var sources []LoginSource
|
var sources []LoginSource
|
||||||
cond := &LoginSource{IsActived: true, AllowAutoRegisted: true}
|
cond := &LoginSource{IsActived: true, AllowAutoRegister: true}
|
||||||
err = orm.UseBool().Find(&sources, cond)
|
err = orm.UseBool().Find(&sources, cond)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -67,7 +67,7 @@ func NewAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) {
|
||||||
Type: form.Type,
|
Type: form.Type,
|
||||||
Name: form.AuthName,
|
Name: form.AuthName,
|
||||||
IsActived: true,
|
IsActived: true,
|
||||||
AllowAutoRegisted: form.AllowAutoRegister,
|
AllowAutoRegister: form.AllowAutoRegister,
|
||||||
Cfg: u,
|
Cfg: u,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ func EditAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) {
|
||||||
Name: form.AuthName,
|
Name: form.AuthName,
|
||||||
IsActived: form.IsActived,
|
IsActived: form.IsActived,
|
||||||
Type: form.Type,
|
Type: form.Type,
|
||||||
AllowAutoRegisted: form.AllowAutoRegister,
|
AllowAutoRegister: form.AllowAutoRegister,
|
||||||
Cfg: config,
|
Cfg: config,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
|
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
|
||||||
<label class="col-md-3 control-label">Auto Register: </label>
|
<label class="col-md-3 control-label">Auto Register: </label>
|
||||||
<div class="col-md-7">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue