summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/rest/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/register.py b/synapse/rest/register.py
index 3b07a127a6..66cef26ada 100644
--- a/synapse/rest/register.py
+++ b/synapse/rest/register.py
@@ -153,7 +153,7 @@ class RegisterRestServlet(RestServlet):
     @defer.inlineCallbacks
     def _check_recaptcha(self, request, register_json):
         if "captcha_bypass_secret" in register_json:
-            if (self.hs.config.captcha_bypass_secret is not None and
+            if (self.hs.config.captcha_bypass_secret and
                     register_json["captcha_bypass_secret"] ==
                         self.hs.config.captcha_bypass_secret):
                 defer.returnValue(None)