Fix some linting errors
parent
75aa316a6a
commit
16f593f786
|
@ -22,15 +22,15 @@ import (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// Registration Flows that the server allows.
|
// Registration Flows that the server allows.
|
||||||
allowedFlows []authtypes.Flow = []authtypes.Flow{
|
allowedFlows = []authtypes.Flow{
|
||||||
{
|
{
|
||||||
[]authtypes.LoginType{
|
Stages: []authtypes.LoginType{
|
||||||
authtypes.LoginType("stage1"),
|
authtypes.LoginType("stage1"),
|
||||||
authtypes.LoginType("stage2"),
|
authtypes.LoginType("stage2"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
[]authtypes.LoginType{
|
Stages: []authtypes.LoginType{
|
||||||
authtypes.LoginType("stage1"),
|
authtypes.LoginType("stage1"),
|
||||||
authtypes.LoginType("stage3"),
|
authtypes.LoginType("stage3"),
|
||||||
},
|
},
|
||||||
|
|
|
@ -355,10 +355,10 @@ func (config *Dendrite) derive() {
|
||||||
if config.Matrix.RecaptchaEnabled {
|
if config.Matrix.RecaptchaEnabled {
|
||||||
config.Derived.Registration.Params[authtypes.LoginTypeRecaptcha] = map[string]string{"public_key": config.Matrix.RecaptchaPublicKey}
|
config.Derived.Registration.Params[authtypes.LoginTypeRecaptcha] = map[string]string{"public_key": config.Matrix.RecaptchaPublicKey}
|
||||||
config.Derived.Registration.Flows = append(config.Derived.Registration.Flows,
|
config.Derived.Registration.Flows = append(config.Derived.Registration.Flows,
|
||||||
authtypes.Flow{[]authtypes.LoginType{authtypes.LoginTypeRecaptcha}})
|
authtypes.Flow{Stages: []authtypes.LoginType{authtypes.LoginTypeRecaptcha}})
|
||||||
} else {
|
} else {
|
||||||
config.Derived.Registration.Flows = append(config.Derived.Registration.Flows,
|
config.Derived.Registration.Flows = append(config.Derived.Registration.Flows,
|
||||||
authtypes.Flow{[]authtypes.LoginType{authtypes.LoginTypeDummy}})
|
authtypes.Flow{Stages: []authtypes.LoginType{authtypes.LoginTypeDummy}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue