recaptcha

Recaptcha google on angular 6 implementation

旧巷老猫 提交于 2019-12-04 14:15:52
im trying to implement recaptcha2 in angular but i dont know where i put the step 3 in my code https://www.npmjs.com/package/angular-google-recaptcha im creating a form that need this,here's where i put the captcha: <div class="form-group-log text-center but-form"> <div class="g-recaptcha" data-sitekey="" data-callback="enableButtonEnviar"> </div> <button type="submit" disabled="disabled" class="btn btn-outline-primary btn-block btn-w-240 " id="Btn-enviar" data-dismiss="modal"> Entrar </button> </div> but doesnt display nothing. in the link says that i need to put this but i dont know where,

How do I correctly Re-render a Recaptcha in ASP.NET MVC 2 after an AJAX POST

天涯浪子 提交于 2019-12-04 13:30:20
Ok... I've downloaded and implemented this Recaptcha implementation for MVC which uses the ModelState to confirm the validity of the captcha control. It works brilliantly... except when I start to use it in an AJAX Form. In a nutshell, when a div is re-rendered with AJAX, the ReCaptcha that it should contain does not appear, even though the relevant <scripts> are in the source after the partial render. Code Below. using (Ajax.BeginForm("CreateComment", "Blog", new AjaxOptions() { HttpMethod = "POST", UpdateTargetId = "CommentAdd", OnComplete="ReloadRecaptcha", OnSuccess = "ShowComment",

How to validate google recaptcha on client side?

对着背影说爱祢 提交于 2019-12-04 11:00:31
I have implemented google reCaptcha on a login panel showing after 3 unsuccessful login But I want to validate reCaptcha on a client slide using jQuery on clicking of login button here is the code <div style="display:none;width:310px;top:205px;left:558px;position:absolute" id="grecaptcha" runat="server"> <cc1:GoogleReCaptcha ID="ctrlGoogleReCaptcha1" runat="server" PublicKey="6LdHrQ0TAAAAAD77ubv9Jr6q4RYkyddhXzX-XPB3" PrivateKey="xxxxxxx" /> </div> <span id="captcha" style="margin-left:588px;color:red" /> <asp:Button ID="LoginButton" runat="server" OnClientClick="get_action();" CommandName=

Symfony2 add reCaptcha field to registration form

帅比萌擦擦* 提交于 2019-12-04 06:37:10
I'm trying to add EWZRecaptcha to my registration form. My registration form builder looks something like this: public function buildForm(FormBuilder $builder, array $options) { $builder->add('username', 'text') ->add('password') ->add('recaptcha', 'ewz_recaptcha', array('property_path' => false)); } public function getDefaultOptions(array $options) { return array( 'data_class' => 'Acme\MyBundle\Entity\User', ); } Now, how can I add the Recaptcha Constraint to the captcha field? I tried to add this to validation.yml: namespaces: RecaptchaBundle: EWZ\Bundle\RecaptchaBundle\Validator\Constraints

reCaptcha v3 cross browser

落爺英雄遲暮 提交于 2019-12-04 05:45:38
问题 For a captcha on a contact form I used the reCaptcha v3 with the Google library. index.php | +- [phpmailer] | +- mailer.php | +- [recaptcha-v3] | +- [ReCaptcha] = library folder https://github.com/google/recaptcha | +- autoload.php & recaptcha-v3-request.js & recaptcha-v3-verify.php "index.php" <body> <form id="contactform" method="post" action="phpmailer/mailer.php"> <input type="hidden" id="grecdata" name="grecdata" value=""> <input type="text" id="yourname" name="yourname" value=""> <input

Recaptcha Request is returning Null

左心房为你撑大大i 提交于 2019-12-04 03:41:01
I'm trying to implement this Recaptcha request into my sign-up form, however it isn't working. The cURL/JSON request returns null when I successfully validate the Recaptcha on my website. I tried using var_dump on the "error-codes": from the JSON request, and it only returns null; whereas in this document it shows that it is clearly meant to output two items in the JSON request. Thanks in advance, I haven't done much work with JSON/cURL, so be easy on me. Here's my code: PHP <?php if($_SERVER["REQUEST_METHOD"] == "POST") { $recaptcha = $_POST['g-recaptcha-response']; if(!empty($recaptcha)) {

Multiple reCAPTCHAs in one ASP.Net page

混江龙づ霸主 提交于 2019-12-04 03:26:11
问题 It is possible to add multiple reCAPTCHAS in one form? I tried doing so, even giving the multiple reCAPTCHAS different IDs, but when I load the page in the browser, only one of them is shown. Is this by design? I need the two reCAPTCHAS because one is for Login, and the other one is for the Register form, which will be shown on the same page. Thanks! WT 回答1: Only one Cpatcha is supported in a page at any time. What you can do is use AJAX and lod captcha after the form is loaded. This might of

reCaptcha issues : No 'Access-Control-Allow-Origin' header is present on the requested resource always shows even I have add header in angularJS

核能气质少年 提交于 2019-12-04 02:47:49
i have some issues in google reCaptcha The captcha is fine, it's show normally, but when I submit it, I have connection issues when I send a POST request to https://www.google.com/recaptcha/api/verify here the error log: XMLHttpRequest cannot load https://www.google.com/recaptcha/api/verify. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3002' is therefore not allowed access. The response had HTTP status code 405. here my html code: <div class="form-group" style="margin-bottom: 20px;"> <div class="text-center center-block"> <div class=

reCaptcha: allow for all domains or add via API

让人想犯罪 __ 提交于 2019-12-04 02:45:23
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 Johnc For multiple domains you can use the Secure Token method. Secure Token (Deprecated) A reCAPTCHA key is normally tied to a set of individual domains.

Increase reCAPTCHA session timeout

五迷三道 提交于 2019-12-04 01:06:41
I'm using the Google reCAPTCHA component and have been asked to increase the session timeout. I couldn't find any solution for this. Can it be done? Many thanks. I'm afraid there's no solution for this, as the reCAPTCHA challenge is served from Google, so the session is not between your app and the user but with the reCAPTCHA service and the user. Think of reCAPTCHA as a multi-tenant web app (where each tenant is the site that's displaying it), and the only settings available to each tenant are the authentication keys and the type of challenge that should be displayed. One solution is to