mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-04-25 13:29:07 -04:00
Make sure the config actually /has/ a captcha_bypass_secret set before trying to compare it
This commit is contained in:
parent
3a8a94448a
commit
5f16439752
@ -153,7 +153,8 @@ 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 (register_json["captcha_bypass_secret"] ==
|
if (self.hs.config.captcha_bypass_secret is not None and
|
||||||
|
register_json["captcha_bypass_secret"] ==
|
||||||
self.hs.config.captcha_bypass_secret):
|
self.hs.config.captcha_bypass_secret):
|
||||||
defer.returnValue(None)
|
defer.returnValue(None)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user