Skip to content

Modify Captcha v3 threshold in config #600

@kibkib

Description

@kibkib

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 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions