recaptcha

reCaptcha is rendered in the most right bottom cornver for some reason

白昼怎懂夜的黑 提交于 2019-12-10 11:23:48
问题 My ajax form with recaptcha, simplified code: <form> <input type="email" placeholder="Email" required="true" /> <input type="submit" value="Create account" /> <div class="g-recaptcha" data-sitekey="12345" data-size="invisible"></div> </form> For some reason, it renders the reCaptcha somewhere in the right bottom corner, under the footer. Why is that and how to fix it? 回答1: Since you are using "invisible" recaptcha, you can pass data-badge attribute in HTML element to recaptcha api. data-badge

reCaptcha field as required

有些话、适合烂在心里 提交于 2019-12-10 11:13:17
问题 I am trying to use recaptcha in a form , however, I am having trouble to set it as required . I tried to use the code of the first two answers of this question, however, none of them worked. Here is my header code: <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/jquery.validate.min.js"></script> <script src="https://www.google.com/recaptcha/api.js"></script> Here is my body code (I tried first the accepted question): <form action="some-page.php"> <fieldset> <legend>Personal

reCAPTCHA - to appear after press submit

▼魔方 西西 提交于 2019-12-10 10:18:18
问题 I wanna use reCAPTCHA for my form. The user must fill the form and then press "Submit". After this, under the "Submit"-Button, reCAPTCHA should appear. How I can do this? 回答1: If I were to want something like this, I would probably preload the reCAPTCHA into a jQuery dialog. I think a user might get confused by a Captcha just appearing seemingly at random on the page when they press a button, but having a dialog come up to confirm some information is not unusual. 回答2: I just needed to do what

Google recaptcha public and private key

人走茶凉 提交于 2019-12-10 10:17:35
问题 We are using google recaptcha in one of our projects. To get the private and public key for captcha we just used the url as http://localhost:4345/. Can the same private and public key be used in live site also. 回答1: Yes that's perfectly ok to use the same key pair for both local testing and server deployment (as long as you keep your private key a secret). On the other hand, if you did not select the "global key" option, the keys are unique to your domain and sub-domains (event though all

reCaptcha file_get_contents(): SSL operation failed

偶尔善良 提交于 2019-12-10 07:14:19
问题 I'm using Google reCaptcha for my webpage. In testing mode everything works fine. No SSL. When I test my webpage in production environment the following errors occures: Warning : file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /vendor/google/recaptcha/src/ReCaptcha/RequestMethod/Post.php on line 68 Warning : file_get_contents(): Failed to enable crypto in /vendor/google

Recaptcha disappears during PostBack

蓝咒 提交于 2019-12-10 02:58:42
问题 I have seen a couple of other posts on here regarding the use of Recaptcha with ASP.net UpdatePanels but have not yet found an answer that solves my problem. Here is my ASPX code : <asp:UpdatePanel ID="updRecaptcha" runat="server" UpdateMode="Always"> <ContentTemplate> <recaptcha:RecaptchaControl ID="btnrecaptcha" runat="server" Theme="clean" PrivateKey"<%$ Resources: General, CaptchaPrivateKey %>" PublicKey="<%$ Resources: General, CaptchaPublicKey %>" /> <asp:Label ID="recaptchaerror" runat

reCAPTCHA box not being aligned correctly

假装没事ソ 提交于 2019-12-10 02:21:37
问题 I can't get to align correctly the reCAPTCHA form on my registration page. Even if the div it is contained in has text-align set to center , it is displayed on the left of the page: While if I change its align via JavaScript ( document.getElementById("recaptcha_widget_div").align = "right" ) it works correctly (screenshot taken in the middle of the page): What am I doing wrong? Edit: here's a fiddle with the div and the entire CSS called in the page. 回答1: I'm posting an updated solution to

reCAPTCHA Ajax API + custom theme not working

ⅰ亾dé卋堺 提交于 2019-12-09 16:22:09
问题 I can't see where I'm going wrong. I've tried everything I could think of, reCAPTCHA is just not working with the Ajax API. Here's what my code looks like: <!-- this is in <head> --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { Recaptcha.create("my key here", "recaptcha_widget", { "theme":

How to add a JavaScript function in WebView and call it later from HTML upon submitting reCAPTCHA

核能气质少年 提交于 2019-12-09 15:46:48
问题 I am adding a JavaScript function in WebView like this (Kotlin): val webView = findViewById(R.id.webview) as WebView webView.getSettings().setJavaScriptEnabled(true) webView.addJavascriptInterface(this, "android") webView.getSettings().setBuiltInZoomControls(false) webView.loadUrl(url) webView.webViewClient = object : WebViewClient() { override fun onPageFinished(view: WebView, url: String) { super.onPageFinished(view, url) webView.loadUrl("javascript:(function captchaResponse (token){" + "

reCaptcha: allow for all domains or add via API

岁酱吖の 提交于 2019-12-09 15:42:26
问题 I'm using the new reCaptcha from Google (with the checkbox and NOT the one with the text to rewrite). As I'm hosting multiple domains (a lot), I can't add all the domains in the admin panel. My question : is it possible to allow the captcha for all the domains ? is there a way (API ?) to add new domain to my list ? If not, can you recommand me an alternative for this reCaptcha that allows per default all the domains ? Thanks a lot in advance 回答1: For multiple domains you can use the Secure