Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Collins Agbonghama

    (@collizo4sky)

    @branis i will reinvestigate this in a WooCommerce store of mine. if found to be true, a fix will be pushed asap.

    Thanks for reporting this.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    Hi, i just tried with JavaScript turned off, and i couldn’t login thus the plugin is working.

    Waiting to hear your feedback.

    The issue is (can’t believe you still don’t see that mate) that with javascript disabled in browser, plugin is still working, but there’s no captcha to solve visible, so you will never login.

    The workaround solution presented by Wade23 is a good attempt to solve the issue and show recaptcha with javascript disabled.

    But it’s still not perfect and needs some tweaking.

    Anyway, this is what I came up with, that seems to work for me.
    Added in base-class.php

    /** Output the reCAPTCHA form field. */
    	public static function display_captcha() {
    
    		if ( isset( $_GET['captcha'] ) && $_GET['captcha'] == 'failed' ) {
    			echo self::$error_message;
    		}
    
    		echo 'Please confirm you are not a Robot!';
    		echo '<div class="g-recaptcha" data-sitekey="' . self::$site_key . '" data-theme="' . self::$theme . '"></div>';
    		echo '<noscript><div style="width: 302px; height: 532px; margin-bottom: 10px;"><div style="width: 302px; height: 532px; position: relative;">'.
    			'<div style="width: 302px; height: 432px; position: absolute;">'.
    			'<iframe src="https://www.google.com/recaptcha/api/fallback?k=' . self::$site_key . '" frameborder="0" scrolling="no" style="width: 302px; height:432px; border-style: none;">'.
    			'</iframe></div><div style="width: 250px; height: 80px; position: absolute; border-style: none; bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;">'.
    			'<textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 80px; border: 1px solid #c1c1c1; margin: 0px; padding: 0px; resize: none;" value="">'.
    			'</textarea></div></div></div></noscript>';
    	}
    Plugin Author Collins Agbonghama

    (@collizo4sky)

    The number of people surfing the net with javascript turn off is very small.

    If they decide not to turn on javascript, they should be stuck without being able to login.

    That’s pretty much how the plugin works.

    Adding a fall-back iframe when JS is dissalbed is actually a possibility though.

    Are you interested in taking this plugin ownership ? If so, you could contact [email protected] and ask for getting control over it.

    I’m glad this is not necessary anymore as Collizo4sky is back :). Nontheless, I have moved on and am using another plugin now.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘easy to overcome the captcha -> turn off javascript’ is closed to new replies.