recaptcha

Prevent reCaptcha multiple image selections

牧云@^-^@ 提交于 2019-12-09 07:46:22
问题 I'm using Google reCaptcha for validation purposes on a client website. Today I've got a complaint/change-request from them, regarding the multiple image selection (Select 2 beers, wines, cakes etc.) validation of reCaptcha. My client thinks it's inappropriate to having their customers choose from alcoholic beverages because of socio-cultural standing of their customer base. Long story short; is there a way to customize Google reCaptcha to only show number/letter based validation when "I'm

Adding a Recaptcha form to my Django login page

て烟熏妆下的殇ゞ 提交于 2019-12-09 03:39:24
I'd like to add Recaptcha to my login form. I'm following this repository but i'm having some problems: i added this to my views.py : from django import forms from captcha.fields import ReCaptchaField class FormWithCaptcha(forms.Form): captcha = ReCaptchaField() But i don't really know where to go from here. I suppose i need to add something to my login.html page but i don't know what. Can anyone give me some help? Note that i already added my public and private keys to my settings.py file. This is the whole views.py : from django.shortcuts import render, redirect from django.http import

Verifying RECAPTCHA with jQuery

℡╲_俬逩灬. 提交于 2019-12-08 18:37:07
问题 I'm trying to verify a Recaptcha using jQuery, but I keep getting an error telling me: Access to restricted URI denied" code: "1012 This is what I've tried so far: var challengeVal = $("#recaptcha_challenge_field").attr("value"); var reponseVal = $("#recaptcha_response_field").attr("value"); var remoteIp = <%= "'" + Request.ServerVariables["REMOTE_HOST"] + "'" %> var privateKey = 'MY_PRIVATE_KEY'; var requestUrl = "http://api-verify.recaptcha.net/verify?privatekey=" + privateKey + "&remoteip=

Submit a form using POST with g-recaptcha-response argument

守給你的承諾、 提交于 2019-12-08 16:55:21
问题 I want to submit a form from following web page: http://www.hzzo-net.hr/statos_OIB.htm First, I use 2captcha service to bypass recaptcha: # parameters api_key <- "c+++" api_url <- "http://2captcha.com/in.php" site_key <- "6Lc3SAgUAAAAALFnYxUbXlcJ8I9grvAPC6LFTKQs" hzzo_url <- "http://www.hzzo-net.hr/statos_OIB.htm" # GET method req_url <- paste0("http://2captcha.com/in.php?key=", api_key,"&method=userrecaptcha&googlekey=", site_key, "&pageurl=", hzzo_url) get_response <- POST(req_url) hzzo

Reload reCaptcha after ajaxComplete

懵懂的女人 提交于 2019-12-08 15:55:36
问题 My reCaptcha is not reloading when ajaxComplete event complete. I have a console error: "No reCAPTCHA clients exist." So why my reCaptcha client disappeared after ajaxComplete? Here is my sample code: $(document).ajaxComplete(function (event, request, settings) { grecaptcha.reset(); }); 回答1: Adding the grecaptcha.render('recaptchaId'); solved the problem. So, the updated code is: $(document).ajaxComplete(function (event, request, settings) { grecaptcha.render('recaptchaWıdgetId'); }); 来源:

reCaptcha breaks other validation?

余生颓废 提交于 2019-12-08 11:58:07
问题 I'm about to make a contact form with reCaptcha but when I apply the reCaptcha and make validation on that, my other validation on the forms won't work and I just can't seem to find out why? I have tried other ways to make the recaptcha validate but nothing works? OLD CODE START: if(isset($_POST['submit'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $privatekey = "MY SECRET CODE GOES HERE"; $response = file_get_contents($url."? secret=".$privatekey."&response=".$_POST['g

Adding a Recaptcha form to my Django login page

徘徊边缘 提交于 2019-12-08 08:28:33
问题 I'd like to add Recaptcha to my login form. I'm following this repository but i'm having some problems: i added this to my views.py : from django import forms from captcha.fields import ReCaptchaField class FormWithCaptcha(forms.Form): captcha = ReCaptchaField() But i don't really know where to go from here. I suppose i need to add something to my login.html page but i don't know what. Can anyone give me some help? Note that i already added my public and private keys to my settings.py file.

How to put ReCaptcha in a popup?

不打扰是莪最后的温柔 提交于 2019-12-08 07:00:18
问题 I want to show Recaptcha in a Popup. Like i have a page where the user can submit a note. If someone is submitting a note i want to show a popup where recaptcha control will be there and after validation the note will be submitted. How can i do that? Can someone please help. 来源: https://stackoverflow.com/questions/3656633/how-to-put-recaptcha-in-a-popup

Set reCaptcha field as required

社会主义新天地 提交于 2019-12-08 05:57:26
I use the new reCaptcha with the jQuery Validate plugin. The validation plugin works nice with my form but unfortunately it didn't work with reCaptcha. My attempt to make it work below: HTML: <div class="g-recaptcha" name="recaptcha" id="recaptcha" data-sitekey="XXXXX"></div> Javascript: recaptcha: { required: true } but it didn't worked. Does anyone know how to fix this. I simply need the default This field is required error message. You should add hidden input for reCaptcha, cause jQuery Validation can only validate input/textarea/select: <div class="g-recaptcha" data-sitekey="XXXXX"></div>

Add recaptcha to default Laravel Password Reset

两盒软妹~` 提交于 2019-12-08 05:06:18
问题 I want to require the users of my Laravel 5.1 application to have finished a Google Recaptcha process, but I can't figure out how to safely modify the code that sends the reset password link. The code that does this for me is the "postEmail()" function in the inherited trait "ResetsPassword". This is my entire PasswordController: use App\Http\Controllers\Controller; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\PasswordBroker; use Illuminate\Foundation\Auth