summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-05 23:08:39 -0700
committerKegan Dougal <kegan@matrix.org>2014-09-05 23:08:39 -0700
commitb5749c75d90247ff2f7960fad909b7b4fb694b67 (patch)
treef601e0fab32f2b47d175cda0fa65952ca5baa014 /synapse/handlers/register.py
parent80 chars please (diff)
downloadsynapse-b5749c75d90247ff2f7960fad909b7b4fb694b67.tar.xz
Reload captchas when they fail. Cleanup on success.
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r--synapse/handlers/register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 0693112ba8..0b841d6d3a 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -62,8 +62,8 @@ class RegistrationHandler(BaseHandler):
                 captcha_info["response"]
             )
             if not captcha_response["valid"]:
-                logger.info("Invalid captcha entered from %s", 
-                            captcha_info["ip"])
+                logger.info("Invalid captcha entered from %s. Error: %s", 
+                            captcha_info["ip"], captcha_response["error_url"])
                 raise InvalidCaptchaError(
                     error_url=captcha_response["error_url"]
                 )