Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/465.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 强制谷歌隐形夺回TCHA挑战_Javascript_Recaptcha_Invisible Recaptcha_React Google Recaptcha - Fatal编程技术网

Javascript 强制谷歌隐形夺回TCHA挑战

Javascript 强制谷歌隐形夺回TCHA挑战,javascript,recaptcha,invisible-recaptcha,react-google-recaptcha,Javascript,Recaptcha,Invisible Recaptcha,React Google Recaptcha,我必须在我的网站登录页面上实现google invisible recaptcha,如果用户登录尝试次数超过5次,则应显示recaptcha challenge(图像网格),但invisible captcha不显示图像网格,它很少显示 我发现使用显式呈现+在grecaptcha.render()之后立即调用grecaptcha.execute()通常会触发来自此链接的质询,我尝试过这样做,因为当我再次呈现时,我们的登录发生在ajax调用中,并获得“recaptcha已在该元素上呈现”。有没有其

我必须在我的网站登录页面上实现google invisible recaptcha,如果用户登录尝试次数超过5次,则应显示recaptcha challenge(图像网格),但invisible captcha不显示图像网格,它很少显示

我发现使用显式呈现+在grecaptcha.render()之后立即调用grecaptcha.execute()通常会触发来自此链接的质询,我尝试过这样做,因为当我再次呈现时,我们的登录发生在ajax调用中,并获得“recaptcha已在该元素上呈现”。有没有其他可能的方法来强制执行recaptcha挑战?阿纳瑟斯非常感激

  if(typeof widget1 !== 'undefined') {
    grecaptcha.reset(widget1);
}

widget1 = grecaptcha.render('test', {
    'sitekey' : '6LdmI_0UAAAAABMAMmt7sGWV5v9JZMSeZbW9CVPs',
    'callback' : onSuccessfullCaptchaVerification,
    'size' : 'invisible'
});
console.log('success!');
grecaptcha.execute(widget1);