mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Config values are almost never 'None', but they might be empty string. Detect their presence by truth
This commit is contained in:
parent
5f16439752
commit
537c7e1137
@ -153,7 +153,7 @@ class RegisterRestServlet(RestServlet):
|
|||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _check_recaptcha(self, request, register_json):
|
def _check_recaptcha(self, request, register_json):
|
||||||
if "captcha_bypass_secret" in 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"] ==
|
register_json["captcha_bypass_secret"] ==
|
||||||
self.hs.config.captcha_bypass_secret):
|
self.hs.config.captcha_bypass_secret):
|
||||||
defer.returnValue(None)
|
defer.returnValue(None)
|
||||||
|
Loading…
Reference in New Issue
Block a user