Comments form doesn't check captcha
-
I have installed the latest version of this plugin however it doesn’t check the captcha on the comments page.
It appears that if JavaScript is enabled it doesn’t bother checking the captcha when you POST: (This is line 640 from google-captcha.php)
if ( ! function_exists( 'gglcptch_commentform_check' ) ) { function gglcptch_commentform_check() { if ( isset( $_POST['gglcptch_test_enable_js_field'] ) ) { if ( wp_verify_nonce( $_POST['gglcptch_test_enable_js_field'], 'gglcptch_recaptcha_nonce' ) ) return; else { if ( gglcptch_check_role() ) return; gglcptch_lostpassword_check(); } } else { if ( gglcptch_check_role() ) return; gglcptch_lostpassword_check(); } } }Have I done something wrong setting up the plugin? Should it be doing something with JavaScript on the page? (I suspect this isn’t safe by the way as the JavaScript to add the nonce runs on document ready so you can disable JavaScript after the page has loaded but the server will think JavaScript is enabled. Plus, as you have to give the nonce to the client, a determined person could manually add it to the POST data to bypass the server side check).
For what it’s worth it works fine on the login page,
The topic ‘Comments form doesn't check captcha’ is closed to new replies.