Problem with recaptcha verification on V6.1

labbyjoel 12 Apr, 2020
I've got a problem with recaptcha validation.

I've set a small test form with just 2 text fields / 1 recaptcha / 1 submit button

Problem with recaptcha verification on V6.1 image 1

the recaptcha module is filled with my site and secret keys

in the submit action I've put a "check google recaptcha" filled with the secret key.

In success I've put a message
in fail I've put a message and a event loader "load"

i've enabled the debug mode.

Problem with recaptcha verification on V6.1 image 2

When I didn't check the "i'm not a robot" case, I get this result :

red warning with ""You didn't pass the NoCaptcha verification."

debug :
Array
(
    [submit_google_nocaptcha] => Array
        (
            [response] => Array
                (
                    [success] => 
                    [error-codes] => Array
                        (
                            [0] => missing-input-response
                        )

                )

            [_error] => The NoCaptcha verification has failed.
            [var] => 
        )

)

When I check the "i'm not a robot" case, I get this result :

The message put in the "fail" and " You didn't pass the NoCaptcha verification."

debug :
Array
(
    [submit_google_nocaptcha] => Array
        (
            [response] => Array
                (
                    [success] => 1
                    [challenge_ts] => 2020-04-12T16:09:56Z
                    [hostname] => www.camping-la-besorgues-ardeche.com
                )

            [_success] => The NoCaptcha verification was successfull.
            [var] => 1
        )

    [submit_validate_fields] => Array
        (
            [log] => Automatic validation enabled.
            [var] => 1
        )

    [google_nocaptcha5] => Array
        (
            [response] => Array
                (
                    [success] => 
                    [error-codes] => Array
                        (
                            [0] => timeout-or-duplicate
                        )

                )

            [_error] => The NoCaptcha verification has failed.
            [var] => 
        )

)

The "timeout or duplicate" is worring...

Have you got any idea on what's wrong ??

thanks !
Max_admin 13 Apr, 2020
Answer
I think its because you have the v6.1 and you have enabled the "Check security actions" in the form general settings already, you should not use the "Check Google captcha" action anymore in v6.1

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
labbyjoel 14 Apr, 2020
Perfect ! Thanks for this reply !

As I would like to keep my submit logic, I've just disabled the "check security actions' and everything goes well !


I've just got a question about "message position" but I will write another post for this.

Thanks again !
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger