diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-13 12:59:45 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-13 12:59:45 +0000 |
commit | 58367a9da2539abdbfe4dc817fba5b179b95334b (patch) | |
tree | 85704bce03bc4d0e187239b17c7b8aab4acdaaa4 /synapse/config/registration.py | |
parent | Also bump dependency link version (diff) | |
download | synapse-58367a9da2539abdbfe4dc817fba5b179b95334b.tar.xz |
Disable registration by default
Diffstat (limited to 'synapse/config/registration.py')
-rw-r--r-- | synapse/config/registration.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py index cca8ab5676..e603575da3 100644 --- a/synapse/config/registration.py +++ b/synapse/config/registration.py @@ -31,3 +31,7 @@ class RegistrationConfig(Config): action='store_true', help="Disable registration of new users." ) + + @classmethod + def generate_config(cls, args, config_dir_path): + args.disable_registration = True |