Skip to content
Snippets Groups Projects
Commit c9e62927 authored by Mark Haines's avatar Mark Haines
Browse files

Use disable_registration keys if they are present

parent 1aa11cf7
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,11 @@ class RegistrationConfig(Config): ...@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment