Results 1 to 4 of 4

Thread: The new reCaptcha - I'm not a robot?

  1. #1
    User zlobec's Avatar
    Join Date
    02-14-14.
    Posts
    34

    Default The new reCaptcha - I'm not a robot?

    Hey,

    has somebody created a module with the new recaptcha from Google? I can't find anything...

    Help
    Darjan

  2. #2
    User zlobec's Avatar
    Join Date
    02-14-14.
    Posts
    34

    Default

    My workaround solution was to check the response from reCaptcha with a jquery script:

    Code:
    		$("#f2").on("submit", function(e) {
    			var response = grecaptcha.getResponse();
    			//recaptcha failed validation
    			if(response.length == 0) {
    				$('#recaptcha-error small').text('Error: reCAPTCHA not successful!');
    				e.preventDefault();
    			}
    			//recaptcha passed validation
    			else {
    				$('#recaptcha-error').remove();
    			}
    		});

  3. #3
    New user
    Join Date
    03-30-16.
    Posts
    4

    Default Form Generator and reCaptcha 2

    Hi,
    Just wondering if anyone has implemented reCaptcha2 with the form generator? I am not a coder and the company who developed our site is no longer. My main problem is the server side validation. I have scoured the web for answers and have so many variations and suggestions of code that I am not sure which is right. Another minor detail is where in Contao should I put the code anyway? modules/frontend/form.php? and where in the code should it lie?

    Sorry to show my ignorance but any help would be much appreciated

    Contao version 2.11.17 php 5.6.40

    Many thanks,
    Bob

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Most important: update Contao and your PHP version!
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •