mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 07:25:05 -04:00
Reload captchas when they fail. Cleanup on success.
This commit is contained in:
parent
3ea6f01b4e
commit
b5749c75d9
2 changed files with 11 additions and 2 deletions
|
@ -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"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue