Forums

Google reCaptcha not working on free account.

I have a python/flask app that runs locally without issue, and the login form has a captcha challenge.

However, the identical code returns FALSE when on Pythonanywhere. Of course I generated new SITE and SECRET keys, pointing to the the pythonanywhere.com domain.

Is the issue that I have a free account, so it's being blocked?

The reCaptcha image shows on the login form (so that's working), the challenge appears (so that's working) and after the challenge, I get a check-mark - which means that I've correctly answered the challenge.

But when I submit the login, the verify fails.

Note that this works on my local machine.

Any assistance would be greatly appreciated.

I think that all of the reCAPTCHA endpoints are whitelisted, so it should work. What is the code that is returning False?

Thank you giles, very embarrassing - this was my problem. The actual reCapture code/image was just outside my form - so wasn't part of the form/submit variables passed back to my flask app.

Thank you for the super quick response.

Code looked something like this:

<form>
  .... stuff ...
  <button type="submit">submit</button>
</form>
{{ recaptcha }}

Of course, I've fixed that and it works like a charm.

Excellent! Glad you got that working!