mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix some linting errors
This commit is contained in:
parent
75aa316a6a
commit
16f593f786
2 changed files with 5 additions and 5 deletions
|
@ -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 a new issue