Hcaptcha Response not valide
lucydjo opened this issue · 0 comments
lucydjo commented
Hello,
Hcaptcha is configured like this :
app.config.update({
"debug": True,
"HCAPTCHA_SITE_KEY": "XXXXXXXXXXX",
"HCAPTCHA_SITE_SECRET": "XXXXXXXXXXXXXX",
"HCAPTCHA_ENABLED": True
})
hcaptcha = hCaptcha(app)
I get the response with jquery with :
let hcaptchaVal = $('iframe').attr('data-hcaptcha-response');
I can get the answer without any problem and send it to the backend. The server receives the response correctly with the "h-captcha-response" variable. But it says that the response is invalid.
print(hcaptcha.verify()) (return false every time)
What to do?
Thx.
EDIT Fix:
Replace HCAPTCHA_SITE_SECRET by HCAPTCHA_SECRET_KEY