recaptcha

Implementing reCaptcha in ASP.NET

寵の児 提交于 2019-12-11 06:09:30
问题 I am trying to insert a captcha in my ASP.NET code. Basically, in the lbt_proceed_click() method, I want the browser to proceed to the next page using Response.Redirect("foo") only if the captcha entered is correct. I searched, but could not find a solution, especially since I am not using a form to send data, but writing to a database directly, and then moving to the next page using Response.Redirect() . 回答1: go to the reCAPTCHA site and register for a unique key Download reCAPTCHA .NET

asp.net MVC 3 - JQuery ajax $.get return <nonscript> reCaptcha instead of actual html in partial view

徘徊边缘 提交于 2019-12-11 05:40:23
问题 This problem is kind of difficult to explain, but I'll do my best. I'm simply trying to render the reCaptcha input on a form that is embedded inside a partial view. Here's how I'm obtaining the partial view with JQuery $.get: GetAndRenderPartialContent: function (url, obj) { $.get(url, function (data) { obj.replaceWith(function () { var content = "<div id=\"" + obj.attr('id') + "\">" + data + "</div>"; return content; }); }); } This works great as a JQuery extension method. The URL that's

ReCAPTCHA placeholder element must be an element or id

前提是你 提交于 2019-12-11 05:06:23
问题 i have some problem with google recaptcha. i put 2 recaptachs in same website but in deferent locations. i place in the footer like: <div class="g-recaptcha" id="recaptcha1"></div> i place in contact us like: <div class="g-recaptcha" id="recaptcha2"></div> but its give me this error: ReCAPTCHA placeholder element must be an element or id. my code: <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script> <script type="text/javascript">

reCaptcha in android xamarin

北城余情 提交于 2019-12-11 04:52:18
问题 I would like to implement captcha in Xamarin android app. I got hold of this integrate googles reCaptcha validation in Android. But its a native android project. I also found this, but I am unable to make it work. I am getting Failed to Check Compatibility alert. The API SafetyNetClass.SafetyNetApi.AttestAsync is returning an error. Not sure why. Is there any other way to go about captcha validation. Any help would be appreciated. 回答1: In order to use the SafetyNetApi to do reCaptcha

Reload recaptcha on browser back button

≯℡__Kan透↙ 提交于 2019-12-11 04:23:09
问题 I have tried numerous methods to reload the image when paging back but no matter what i try i get the same image. Some methods were close ( i can see the image refresh, but the recaptcha server responds back and the previous image reappears). Is there some trick to getting the image to reload when clicking the back button? I dont want my users to have to re-enter all the form information if they type the security words incorrectly. I also want to avoid storing all the information. The page is

reCaptcha v2 in conjunction with jQuery-Form-Validator

允我心安 提交于 2019-12-11 04:18:11
问题 I'm using the jQuery-Form-Validator. Now I want to integrate reCaptcha v2 into my form. The conjunction between both reCaptcha and the validator is somewhat unclear and hardly explained on the official website of the validator. I'm not searching a general solution to incorporate reCaptcha into a form because I know what to do. But I want to know how to do it with the above mentioned validator. Google wants you to paste <div class="g-recaptcha" data-sitekey="your_site_key"></div> The validator

invisible recaptcha with knockout js

跟風遠走 提交于 2019-12-11 01:44:16
问题 I am getting the invisible recaptcha done, but I am having a problem implementing it, the code in the developers page in google show it should be like this <button class="g-recaptcha" data-sitekey="6Lee9CEUAA....." data-callback="YourOnSubmitFn"> Submit </button> But the button on my page is currently includes knockout js data binding which I use to call the login function which sends the ajax call to the back end, but if I use the googles given code, I am not sure how to call the functions

New recaptcha doesn't work twice in (basically) the same page

做~自己de王妃 提交于 2019-12-10 21:55:27
问题 For my website I'm loading all subpages in a div that basically covers everything but the menu via jquery. The structure is like this, you press the account button, and you get the log-in form, then there's a link(that fires an onclick function) to the registration page. I first introduced the captcha to the reg page, via the easiest method, because I couldn't get anything else to work. Everything was fine, until I added captcha to the log-in page, now the registration page doesn't render it

How can I access multiple individual reCAPTCHA responses from the same page?

不羁岁月 提交于 2019-12-10 21:53:41
问题 I have multiple reCAPTCHAS on the same page, and all reCAPTCHAS return $_POST['g-recaptcha-response'] by default. Is there a way so that I can change the $_POST name for each Recaptcha, and therefore access the individual responses of them? If my site keys / secret keys are the same, will this mean that I can't access the individual responses? Thanks for the help! :) HTML: <div class="g-recaptcha" id="recaptcha1"></div> <div class="g-recaptcha" id="recaptcha2"></div> jQuery: var recaptcha1 =

reCAPTCHA v3 not working angular 6 - error executing

走远了吗. 提交于 2019-12-10 20:00:33
问题 I am implementing Google reCAPTCHA v3 with Angular 6. <script src='https://www.google.com/recaptcha/api.js?render=KEY'></script> Added script in index.html In my AppComponent, constructor( @Inject(DOCUMENT) private document: any ) { this.grecaptcha = this.document.grecaptcha; } and when i click form submit, this.grecaptcha.execute('KEY', { action: 'action_name' }) .then(function (token) { // Verify the token on the server. console.log(token); }); But, ERROR TypeError: Cannot read property