- @dench0 opened merge request.
- Status changed to Fixed
over 1 year ago 10:26am 11 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
When a site is configured with a form to use recaptcha_v3 without a site key or secret key. The form submission fails.
The website encountered an unexpected error. Please try again later.
RuntimeException: No secret provided in ReCaptcha\ReCaptcha->__construct() (line 136 of /var/www/html/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php).
_recaptcha_v3_verify_captcha_response(Object, '') (Line: 222)
recaptcha_v3_validate('1', '', Array, Object) (Line: 501)
captcha_validate(Array, Object, Array)
call_user_func_array('captcha_validate', Array) (Line: 280)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 236)
...
* Enable captcha & recaptcha_v3 module.
* Create an recaptcha v3 action.
* Add a captcha point for a form and set the captchaType to be Google reCAPTCHA V3.
* DO NOT ADD site key or site secret.
* Fill the form
* Submit the button.
This should either skip reCAPTCHA V3 validation or a form validation error should show like google reCaptcha v3 not configured properly or similar.
Fixed
1.4
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.