mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 03:35:28 +00: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(
|
self.disable_registration = not bool(
|
||||||
distutils.util.strtobool(str(config["enable_registration"]))
|
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")
|
self.registration_shared_secret = config.get("registration_shared_secret")
|
||||||
|
|
||||||
def default_config(self, config_dir, server_name):
|
def default_config(self, config_dir, server_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user