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

Modify Captcha v3 threshold in config #600

Open
kibkib opened this issue Oct 17, 2024 · 0 comments
Open

Modify Captcha v3 threshold in config #600

kibkib opened this issue Oct 17, 2024 · 0 comments

Comments

@kibkib
Copy link

kibkib commented Oct 17, 2024

As I often get 'score-threshold-not-met' captcha error for my form, it would be nice to have an option to modify the threshold in the form config

There is a fixed value of 0.5 in the form.php

...
// Add version 3 specific options
if ($captcha_version == 3) {
$token = $form->value('token');
$resp = $recaptcha
->setExpectedHostname($hostname)
->setExpectedAction($action)
->setScoreThreshold(0.5)
->verify($token, $ip);
} else {

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

1 participant