summary refs log tree commit diff
path: root/synapse/config/registration.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-13 12:59:45 +0000
committerErik Johnston <erik@matrix.org>2015-03-13 12:59:45 +0000
commit58367a9da2539abdbfe4dc817fba5b179b95334b (patch)
tree85704bce03bc4d0e187239b17c7b8aab4acdaaa4 /synapse/config/registration.py
parentAlso bump dependency link version (diff)
downloadsynapse-58367a9da2539abdbfe4dc817fba5b179b95334b.tar.xz
Disable registration by default
Diffstat (limited to 'synapse/config/registration.py')
-rw-r--r--synapse/config/registration.py4
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