diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-03 14:42:01 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-03 14:42:01 +0000 |
commit | 5054806ec1f64fd784d9e74d73a678643d539c3f (patch) | |
tree | 56c2064c9e77f5b6644ca55e59e3e195df234e23 /synapse/rest/client/v1 | |
parent | Add macaroon inspection script (diff) | |
download | synapse-5054806ec1f64fd784d9e74d73a678643d539c3f.tar.xz |
Rename config field to reflect yaml name
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r-- | synapse/rest/client/v1/register.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/register.py b/synapse/rest/client/v1/register.py index 2bfd4d96bf..6d6d03c34c 100644 --- a/synapse/rest/client/v1/register.py +++ b/synapse/rest/client/v1/register.py @@ -59,7 +59,7 @@ class RegisterRestServlet(ClientV1RestServlet): # } # TODO: persistent storage self.sessions = {} - self.disable_registration = hs.config.disable_registration + self.enable_registration = hs.config.enable_registration def on_GET(self, request): if self.hs.config.enable_registration_captcha: @@ -113,7 +113,7 @@ class RegisterRestServlet(ClientV1RestServlet): is_using_shared_secret = login_type == LoginType.SHARED_SECRET can_register = ( - not self.disable_registration + self.enable_registration or is_application_server or is_using_shared_secret ) |