Not stopping webform from submitting

Created on 26 March 2024, 8 months ago

We have added htcaptcha to a webform. Submitting the webform without ticking the captcha box is not stopping the form from submitting. `hcaptcha_captcha_validation` is run but is returning FALSE here

if (!isset($_POST['h-captcha-response']) || empty($_POST['h-captcha-response']) || empty($hcaptcha_secret_key)) {
    return false;
}

because `h-captcha-response` is empty.

I dont know enough about how hcaptcha works to know if that check is required or not.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇬🇧United Kingdom lstirk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024