Enable registration for CI

This commit is contained in:
Till Faelligen 2022-04-28 17:28:58 +02:00
parent e2e1ff7ea3
commit 43b44a3d15
2 changed files with 3 additions and 1 deletions

View file

@ -90,6 +90,7 @@ func main() {
cfg.Logging[0].Type = "std"
cfg.UserAPI.BCryptCost = bcrypt.MinCost
cfg.Global.JetStream.InMemory = true
cfg.ClientAPI.RegistrationDisabled = false
cfg.ClientAPI.RegistrationSharedSecret = "complement"
cfg.Global.Presence = config.PresenceOptions{
EnableInbound: true,

View file

@ -61,9 +61,10 @@ func (c *ClientAPI) Defaults(generate bool) {
c.RecaptchaEnabled = false
c.RecaptchaBypassSecret = ""
c.RecaptchaSiteVerifyAPI = ""
c.RegistrationDisabled = false
c.RegistrationDisabled = true
c.RegistrationWithoutVerificationEnabled = false
if generate {
c.RegistrationDisabled = false
c.RegistrationWithoutVerificationEnabled = true
}
c.RateLimiting.Defaults()