mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 12:39:32 -05:00
Use disable_registration keys if they are present
This commit is contained in:
parent
1aa11cf7ce
commit
c9e62927f2
@ -26,6 +26,11 @@ class RegistrationConfig(Config):
|
||||
self.disable_registration = not bool(
|
||||
distutils.util.strtobool(str(config["enable_registration"]))
|
||||
)
|
||||
if "disable_registration" in config:
|
||||
self.disable_registration = bool(
|
||||
distutils.util.strtobool(str(config["disable_registration"]))
|
||||
)
|
||||
|
||||
self.registration_shared_secret = config.get("registration_shared_secret")
|
||||
|
||||
def default_config(self, config_dir, server_name):
|
||||
|
Loading…
Reference in New Issue
Block a user