recaptcha

Reset Multiple Google reCAPTCHA

家住魔仙堡 提交于 2021-02-18 00:49:32
问题 I have two forms on a single page which both use Google reCAPTCHA. Whenever i use grecaptcha.reset(); it only resets the first instance. The following JS renders the reCAPTCHA(s) var recaptcha1; var recaptcha2; var myCallBack = function() { //Render the recaptcha1 on the element with ID "recaptcha1" recaptcha1 = grecaptcha.render('recaptcha1', { 'sitekey' : '1234', //Replace this with your Site key 'theme' : 'light' }); //Render the recaptcha2 on the element with ID "recaptcha2" recaptcha2 =

Bootstrap v4 form validation with reCaptcha v3

自作多情 提交于 2021-02-11 17:28:31
问题 I have a form that uses the bootstrap code below for form field validation. How do I integrate reCaptcha v3 to run after Bootstrap form validation? The reCaptcha code seems to override the validation. reCaptcha v3 code grecaptcha.ready(function() { grecaptcha.execute('reCAPTCHA_site_key', {action: 'submit'}).then(function(token) { }); Bootstrap 4 form validation code (function () { "use strict"; window.addEventListener( "load", function () { // Fetch all the forms we want to apply custom

Bootstrap v4 form validation with reCaptcha v3

穿精又带淫゛_ 提交于 2021-02-11 17:28:12
问题 I have a form that uses the bootstrap code below for form field validation. How do I integrate reCaptcha v3 to run after Bootstrap form validation? The reCaptcha code seems to override the validation. reCaptcha v3 code grecaptcha.ready(function() { grecaptcha.execute('reCAPTCHA_site_key', {action: 'submit'}).then(function(token) { }); Bootstrap 4 form validation code (function () { "use strict"; window.addEventListener( "load", function () { // Fetch all the forms we want to apply custom

SSLHandshakeException for Google Recaptcha

我的未来我决定 提交于 2021-02-11 14:19:41
问题 I am using a Java 1.7 application running on a JBoss7.0.2.Final server. I created a REST endpoint to handle user login. This works fine, but when I call Google's recaptcha (v2) url (https://www.google.com/recaptcha/api/siteverify), I get the following error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure This was working with no errors yesterday, and there have been no changes on our server, so I suspect something might have changed on googles end. Question Does

Error 401 sending recaptcha token with requests

谁都会走 提交于 2021-02-10 22:18:02
问题 I tried to make a cart for this site: https://www.off---white.com/en/IT When I tried to send values for the params of the cart, one of this params is a token of recaptcha. I tried manually to get the token using this project 'https://github.com/Cosmo3904/Recaptcha-Harvester-V2' When I tried to make the request I pass all params: token = 'recaptcha_token' #(I get it manually and expires every 110s) payload = {"variant_id": "111380", "quantity": "1", 'g-recaptcha-response': token} s = requests

How do I use reCaptcha in a vagrant development environment?

时光毁灭记忆、已成空白 提交于 2021-02-10 19:53:34
问题 I am developing using vagrant. I'd like to use reCapcha how ever I get an error when when I'm developing on local machine which is at a subdomain on the vagrant configured private network 192.168.100.100: ERROR for site owner: Invalid domain for site key The recaptcha works on the production site fine. How can I setup my development environment to work with recaptcha? In the vagrant bootstrap are the following: <Directory "/var/www/"> AllowOverride All </Directory> <VirtualHost *:80>

ios requires reCAPCHA every time w/ firestore auth (Flutter)

£可爱£侵袭症+ 提交于 2021-02-10 06:53:30
问题 I am using phone verification in my flutter app. My goal is to have the following flow: 1. user enters phone number 2. user is sent verification code 3. user enters code and is signed in. On android, that is the flow I get. On ios, however, it goes 1. user enters phone number 2. reCAPCHA page opens to make sure I'm not a robot 3. user is sent verification code 4. user enters code and is signed in (this happens on ios emulator). I want to get rid of the reCAPCHA page. Some people recommended

reCaptcha values not appearing in $_POST

随声附和 提交于 2021-02-08 21:49:52
问题 I am trying to use reCaptcha on my site, and recaptcha_challenge_field, and recaptcha_response_field are not being added to the $_POST array on the backend - but the rest of the variables from my form are. Any ideas? I have double checked the public/private keys. Here is the generated HTML: <form action='myform.php' name='myform' id='myform' method='post' enctype='multipart/form-data'> <tr class='select'> <td class='label'>Name:</td> <td> <input type='text' name='name' id='name' class=

Google reCaptcha in Web API 2 c#

混江龙づ霸主 提交于 2021-02-07 20:22:12
问题 I have an ASP.NET Web API 2 Project. I am trying to read Google Captcha from the form. I tried this Code: public string Post(FoundingRequest model) { var response = Request["g-recaptcha-response"]; string secretKey = "my key"; var client = new WebClient(); var result = client.DownloadString( $"https://www.google.com/recaptcha/api/siteverify?secret={secretKey}&response={response}"); var obj = JObject.Parse(result); model.Captcha = (bool)obj.SelectToken("success"); .... } but I am receiving an

How to implement Recaptcha on keycloak login page

无人久伴 提交于 2021-02-07 04:16:41
问题 I want to implement recaptcha in keycloak login page like registration page. I extended UsernamePasswordForm class with desired factory class. I even implenmented action required classes as well. but still i can not see that in provider tab to add in login. i modified existing login.ftl also but no luck. below is what i tried. My Authenticator class: public class MyLoginAuthenticator extends UsernamePasswordForm { @Override public void action(AuthenticationFlowContext context) {