• Resolved kevingobert

    (@kevingobert)


    Hi.

    Thanks for your plugin.

    I use the official library https://github.com/google/recaptcha on the backend side to check the answer.

    The answer is always false. I have tested the reCaptcha by integrating it into my page and it works.

    Strangely, if I comment on line 162 of the plugins ‘<! – <input type = “hidden” name = “<!–<input type=”hidden” name=”<?php echo $field[‘name’]?>”>–>’ Validation is correct

    • This topic was modified 8 years, 1 month ago by kevingobert.
    • This topic was modified 8 years, 1 month ago by kevingobert.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kevingobert

    (@kevingobert)

    I understand. The validation is done automatically and therefore normally in backend, I no longer need to do it?

    But if the ReCaptcha expires, the field does not empty. So we lose the validation

    • This reply was modified 8 years, 1 month ago by kevingobert.
    Plugin Author Irvin Lim

    (@irvinlim)

    Hi Kevin,

    Thanks for reaching out.

    You are correct, I have already included the validation from the exact same library (see line 241), so you would not need to verify the validity of the recaptcha value yourself.

    I’m not too sure of the behaviour when you perform verification twice, but perhaps that is the problem. You can simply just use the plugin as it is, and it should be valid.

    Hope this helps! Do let me know if you still encouter any issues.

    Cheers!

    Irvin Lim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Validation error PHP’ is closed to new replies.