update draft/register -> draft/account-registration

Fixes #1740
This commit is contained in:
Shivaram Lingamneni 2021-07-07 07:37:46 -04:00
parent dcfd8d8fe8
commit 59bddd066f
5 changed files with 24 additions and 15 deletions

View file

@ -1385,7 +1385,7 @@ func LoadConfig(filename string) (config *Config, err error) {
}
if !config.Accounts.Registration.Enabled {
config.Server.supportedCaps.Disable(caps.Register)
config.Server.supportedCaps.Disable(caps.AccountRegistration)
} else {
var registerValues []string
if config.Accounts.Registration.AllowBeforeConnect {
@ -1398,7 +1398,7 @@ func LoadConfig(filename string) (config *Config, err error) {
registerValues = append(registerValues, "account-required")
}
if len(registerValues) != 0 {
config.Server.capValues[caps.Register] = strings.Join(registerValues, ",")
config.Server.capValues[caps.AccountRegistration] = strings.Join(registerValues, ",")
}
}