[Answered ]-Google ReCAPTCHA validation failed with Django

2👍

Looking at your RecaptchaClient and your template script, it appears that your public key in the RecaptchaClient is incorrect.

Here is the script source:

https://www.google.com/recaptcha/api/challenge?k=6LeuNO4SAAAAAAdkaCUi6ybtISPI-YhIlOadgFNF&hl=en

This link contains two parameters:

  • k=6LeuNO4SAAAAAAdkaCUi6ybtISPI-YhIlOadgFNF
  • hl=en

The public key in your RecaptchaClient includes the “&hl” from the next parameter after the key.

recaptcha_client = RecaptchaClient('6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe', '6LeuNO4SAAAAAAdkaCUi6ybtISPI-YhIlOadgFNF')

Leave a comment