Make captcha work again with the new registration logic.

This commit is contained in:
Kegan Dougal 2014-09-15 14:52:39 +01:00
parent d821755b49
commit 04fbda46dd
2 changed files with 22 additions and 1 deletions

View file

@ -133,6 +133,7 @@ class RegisterRestServlet(RestServlet):
logger.debug("Removing session %s", session)
self.sessions.pop(session["id"])
@defer.inlineCallbacks
def _do_recaptcha(self, request, register_json, session):
if not self.hs.config.enable_registration_captcha:
raise SynapseError(400, "Captcha not required.")