• Hi there,
    I’m using Wordfence with Advanced noCaptcha & invisible Captcha (v2 & v3) plugin without any issues. But after I have enabled 2FA on Wordfence, I’m unable to login to the WP Dashboard. I have tried both recapcha V2 (Checkbox and Invisible mode) and V3. Every time returning “Please solve Captcha correctly”. Can you please check?
    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,
    Same problem here.
    When setting up Worfence’s 2FA, the wp-login.php page is re-used with “reauth=1” param, but the captcha doesn’t appear anymore and it becomes impossible to log in.
    Thanks

    EDIT
    the answer : add the following code in your functions.php (it will disable the captcha for admin, since it may no be needed as we use the 2FA instead)

    add_filter( 'authenticate', function( $user, $username = '', $password = '' ){
        if ( $user instanceof WP_User && class_exists("anr_captcha_class") ) {
    		if ( array_intersect( $user->roles, [ 'administrator' ] ) ) {
    			remove_filter( 'authenticate', array( anr_captcha_class::init(), 'login_verify' ), 999, 3 );
    		}
        }
        return $user;
    }, 990, 3 );
Viewing 1 replies (of 1 total)
  • The topic ‘Conflicted Reacpcha V2 & V3 with Wordfence 2FA’ is closed to new replies.