recaptcha-v3

Combining form onsubmit parameter with jquery submit event handler

China☆狼群 提交于 2021-02-11 16:20:19
问题 I have a form that is being generated by legacy back-end code that, for a variety of reasons, I can't change. The form is straightforward HTML: <form action="#" id="theForm" onsubmit="return check_theForm(); method="post"> <!-- fields go here --> </form> On submission the onsubmit parameter fires to verify that all compulsory field have been filled in, using the check_theform() function which contains "plain vanilla" javascript (i.e. no jQuery code). In other words, basic stuff. I'm now

Can someone confirm please? Recaptcha V3 returns score 0.1 after plus/minus 20 times submitting form (while adjusting these pages)

血红的双手。 提交于 2020-08-09 07:32:40
问题 I have a register page where i use recaptcha for the first form with the users email(i am working on it now). Then it hides that form and i remove the recaptcha token div. Then the name streetnumber etc. comes up show() and that needs to be filled in as a new recaptcha form. That works great and perfect. Is it normal that the recaptcha V3 returns 0.1 after i pushed the 2 form buttons like 20/30 times WITHOUT 1 wrong click. So 20/30 times in a row of successfull clicks on the recaptcha form

How to solve Google v3 reCaptcha timeout?

旧时模样 提交于 2020-05-27 05:15:27
问题 We have a PHP form that is several tabs and times-out on the reCaptcha. Everything is done in one page and it works perfectly fine IF the form is completed in <3 minutes. The idea of a solution is to move the form processing and reCaptcha to a secondary page for processing. The problem is that the form page polls the google service for reCaptcha and collects a token value to a hidden field. <input type="hidden" name="recaptcha_response" id="recaptchaResponse"> The problem is how to request

How to solve Google v3 reCaptcha timeout?

老子叫甜甜 提交于 2020-05-27 05:15:07
问题 We have a PHP form that is several tabs and times-out on the reCaptcha. Everything is done in one page and it works perfectly fine IF the form is completed in <3 minutes. The idea of a solution is to move the form processing and reCaptcha to a secondary page for processing. The problem is that the form page polls the google service for reCaptcha and collects a token value to a hidden field. <input type="hidden" name="recaptcha_response" id="recaptchaResponse"> The problem is how to request

ReCaptcha3: How to call execute when user takes the action?

被刻印的时光 ゝ 提交于 2020-05-17 07:16:07
问题 I managed to get ReCaptcha3 working when including it like this: <script src="https://www.google.com/recaptcha/api.js?render=mykey"></script> <script> grecaptcha.ready(function() { grecaptcha.execute('mykey', {action: 'homepage'}).then(function(token) { document.getElementById("googletoken").value= token; }); </script> However, in the docs I found the following note: Note: reCAPTCHA tokens expire after two minutes. If you're protecting an action with reCAPTCHA, make sure to call execute when

(PHP) Stuck making submission form anti spam

天大地大妈咪最大 提交于 2020-01-22 02:31:15
问题 So I am almost done creating this anti spam google recaptcha v3 form. I get failure to the end. could you see what is the problem? I dont use this to send data to DB but to my email. let me know if this is the problem, but i think not. I am almost finished, here what I have done so far: still getting failed to save data error <?php if(isset($_POST['submit'])){ // print_r($_POST); $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "censord", 'response' => $_POST[

Google Recaptcha V3 - Widget Id when loading captcha through URL

霸气de小男生 提交于 2020-01-05 09:36:39
问题 I am implementing the Recaptcha V3 on my site, and I could not find a proper way to reset the token if my request has failed. Following the documentation, to load the recaptcha I need to include the following script on my page: <script src='https://www.google.com/recaptcha/api.js?render=MY_KEY'></script> Also I am binding the captcha token to a field, to validate on my back end when the customer choose to send an e-mail: grecaptcha.ready(function() { grecaptcha.execute('MY_KEY', { action :

Google recaptcha doesn't show in div

老子叫甜甜 提交于 2019-12-31 05:37:07
问题 I use nuxtjs as front end going to put Google recaptcha versi 3 in my site but it always give me google captcha in right bottom, i use recaptcha versi 3 this is my screen shoot i configure code as documention but still doesn't work, this is my script calling recaptcha google put in head section function onloadCallback() { grecaptcha.ready(function() { grecaptcha.execute('6Le3oXkUAAAAACZn9Dbhriy9WFQQTEIqzlmm7bqc12', {action: 'action_name'}) .then(function(token) { // Verify the token on the