Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using V3 is faulty #8

Closed
kevinmu17 opened this issue Sep 18, 2023 · 1 comment
Closed

Using V3 is faulty #8

kevinmu17 opened this issue Sep 18, 2023 · 1 comment

Comments

@kevinmu17
Copy link

The google V3 is using a timeout function of 2 minutes. This plugin doesn't support this system. If you go to a contact page, the google recaptcha is getting rendered ({{ craft.googleRecaptcha.render() }}) But if you submit your form outside these 2 minutes, the submit will fail.

2023-09-18 07:46:01 [web.WARNING] [juban\googlerecaptcha\services\Recaptcha::verify] reCAPTCHA check failed: [ 'success' => false 'error-codes' => [ 0 => 'timeout-or-duplicate' ] ] {"memory":19187288}

But this seems to be some sort of soft failing ( [web.WARNING] ). Is there a way to fix this? This should be and web.ERROR to catch this problem for the visitor.

@juban
Copy link
Owner

juban commented Nov 11, 2024

Hi @kevinmu17
v3 is finally out with Craft 5 support and an improvement which prevents the timeout issue by adding a formId parameter to the twig render function.
As a side note, when that kind of error occurs, the verify method will fail, so this is not a soft fail and the user will have to validate the captcha again.
I hope this meets your expectations.

@juban juban closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants