recaptcha

Unexpected field 'g-recaptcha-response' in POST data on CakePHP 3

吃可爱长大的小学妹 提交于 2019-12-11 16:05:03
问题 I have created a site using CakePHP 3. I have static page which has contact us form something like this: inside contactus.ctp: <?=$this->Form->create(); ?> <?=$this->Form->hidden('form_type',['value' => 'contact']) ?> <?=$this->Form->input('name',[ 'label' => false, 'placeholder' => 'Your Full Name', 'required' => true ]); ?> <?=$this->Form->input('email',[ 'label' => false, 'placeholder' => 'Your Email', 'type' => 'email', 'require' => true ]); ?> <?=$this->Form->textarea('message',[

Captcha encryption

最后都变了- 提交于 2019-12-11 14:58:57
问题 I have created a captcha image making program with PHP <?php function word($n) { $consonants = "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ"; $vowels = "aeiou"; $word[1] = $consonants[rand(0, 41)]; $word[2] .= $vowels[rand(0, 4)]; $word[3] .= $consonants[rand(0, 41)]; $word[4] .= $consonants[rand(0, 41)]; return $word[$n]; } $xs = 550; $ys = 300; $im = imagecreatetruecolor($xs, $ys); $newim = imagecreatetruecolor($xs, $ys); imagettftext($im, $ys/5, rand(-10, 10), rand(0, 10), $ys/2, 0xFFFFFF,

Customize Google Re Captcha in Perl

此生再无相见时 提交于 2019-12-11 14:49:26
问题 I want to customize google re captcha to have only digits as option for verification code. Is is possible to do . If yes then how to do it ? 回答1: No, this is not possible. The reCaptcha system is meant as an easy way to plug in a Captcha to your site. As a side effect, it helps digitizing books by using image snippets from scans as a visual challenge. If only numbers should be displayed, then only such “words” from books could be used that are already known to be numbers. This would void the

language option in reCAPTCHA ASP.NET plugin

坚强是说给别人听的谎言 提交于 2019-12-11 13:46:12
问题 I'm using ASP.NET plugin for reCAPTCHA in my ASP.NET MVC application. Recaptcha assembly version is 1.0.4.0. Is there a way to set language to be used for RecaptchaControl? var captchaControl = new Recaptcha.RecaptchaControl { ID = "recaptcha", Theme = "blackglass", PublicKey = "public_key", PrivateKey = "private_key" }; 回答1: This feature was not supported in v1.0.4.0. Please download the latest version and try again. http://code.google.com/p/recaptcha/downloads/detail?name=recaptcha-dotnet-1

Check google reCaptcha service is on or off

馋奶兔 提交于 2019-12-11 12:34:38
问题 I am using simple google recaptcha. My requirement is that if google api is not available (i.e. if google server is down, know its not usual case) means not getting any reply from google server then while loding the form I will hide the google reCaptcha wrapper and while submitting the form I don't want to validate google recaptcha. Please suggest How can I achieve this. 回答1: Google does not provide that data (assuming they are always up). But you could go about it this way. Dynamically load

'Access-Control-Allow-Origin' error in recaptcha call

你。 提交于 2019-12-11 10:36:13
问题 I am implementing recaptcha in my angularJS register form. But I am getting error as **"XMLHttpRequest cannot load https://www.google.com/recaptcha/api/verify. No 'Access-Control-Allow-Origin' header is present on the requested resource. I have used https://github.com/VividCortex/angular-recaptcha for recaptcha. My code is as follows. <head> <script> var app = angular.module('testApp', ['vcRecaptcha']); app.controller('testCtrl', function ($scope, vcRecaptchaService) { console.log("this is

PHP Form, MailFonction and Google reCaptcha Validation Issue

你说的曾经没有我的故事 提交于 2019-12-11 10:14:07
问题 I have a issue with the way ive program the captcha verification with the mail fonction. The Captcha Success are working fine. When the captcha fail, i got the proper message into the form page, but PHP programation still let the email sent. I just need to know how can i set the mail function with the success part only. Can anyone help me fix the reCaptcha validation? Thank you. Here is the PHP source code: <?php if (isset($_POST["submit"])) { $url = 'https://www.google.com/recaptcha/api

disable button using javascript function in asp.net

浪子不回头ぞ 提交于 2019-12-11 09:07:52
问题 i am having a problem trying to disable a button, here is my javascript function: <script type="text/javascript"> var DisableButton = function () { document.getElementById("<%= LoginButton.ClientID %>").disabled = true; }; var EnableButton = function () { document.getElementById("<%= LoginButton.ClientID %>").disabled = false; }; </script> and this is where the button is located <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false"> <LayoutTemplate> <%--

how to implement recaptcha in react native app?

巧了我就是萌 提交于 2019-12-11 08:57:29
问题 I have used "npm install react-native-recaptcha-v3" for recaptcha integration. But it gives a warning Failed prop type: The prop 'url' is marked as required in 'ReCaptcha', but its value is 'undefined'. what was I do wrong? how to resolve it? render() { return ( <View> <ReCaptcha sitekey= {this.props.sitekey} verifyCallback={this.verifyCallback.bind(this)} /> </View> ); } 回答1: Seems like you're looking at React.js vs React Native . React.js packages are not intended for React Native . Think

Add Google Recaptcha on a SilverStripe form

╄→гoц情女王★ 提交于 2019-12-11 06:26:29
问题 I am trying to add Google Recaptcha to my custom SilverStripe form. I have generated Google public and private keys but I do not know where to put them to show a captcha on my website. Here is my current code: ContactPage class ContactPage extends Page { private static $db = array( 'TelCustomerSupport' => 'Varchar', 'TelProjectSupport' => 'Varchar', 'OfficeName' => 'Text', 'OfficeStreetAddress' => 'Text', 'OfficeAddressLocality' => 'Text', 'OfficePostalCode' => 'Varchar', 'OfficeMapLink' =>