mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 12:13:09 -06:00
Enable registration for CI
This commit is contained in:
parent
e2e1ff7ea3
commit
43b44a3d15
|
|
@ -90,6 +90,7 @@ func main() {
|
||||||
cfg.Logging[0].Type = "std"
|
cfg.Logging[0].Type = "std"
|
||||||
cfg.UserAPI.BCryptCost = bcrypt.MinCost
|
cfg.UserAPI.BCryptCost = bcrypt.MinCost
|
||||||
cfg.Global.JetStream.InMemory = true
|
cfg.Global.JetStream.InMemory = true
|
||||||
|
cfg.ClientAPI.RegistrationDisabled = false
|
||||||
cfg.ClientAPI.RegistrationSharedSecret = "complement"
|
cfg.ClientAPI.RegistrationSharedSecret = "complement"
|
||||||
cfg.Global.Presence = config.PresenceOptions{
|
cfg.Global.Presence = config.PresenceOptions{
|
||||||
EnableInbound: true,
|
EnableInbound: true,
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,10 @@ func (c *ClientAPI) Defaults(generate bool) {
|
||||||
c.RecaptchaEnabled = false
|
c.RecaptchaEnabled = false
|
||||||
c.RecaptchaBypassSecret = ""
|
c.RecaptchaBypassSecret = ""
|
||||||
c.RecaptchaSiteVerifyAPI = ""
|
c.RecaptchaSiteVerifyAPI = ""
|
||||||
c.RegistrationDisabled = false
|
c.RegistrationDisabled = true
|
||||||
c.RegistrationWithoutVerificationEnabled = false
|
c.RegistrationWithoutVerificationEnabled = false
|
||||||
if generate {
|
if generate {
|
||||||
|
c.RegistrationDisabled = false
|
||||||
c.RegistrationWithoutVerificationEnabled = true
|
c.RegistrationWithoutVerificationEnabled = true
|
||||||
}
|
}
|
||||||
c.RateLimiting.Defaults()
|
c.RateLimiting.Defaults()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue