• Resolved chiragveriheal

    (@chiragveriheal)


    I am working on WooCommerce frontside customer login form. I enabled Brute Force Simple Math captcha, but I can’t get hidden variable or something on admin-ajax side? how can I check inserted Math answer is true or false? WP-Security is managed itself or I can check manually?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @chiragveriheal,

    Can you please let me know which plugin do you use for woocommerce admin-ajax login?

    Generally WooCommerce login captcha is enabled and woocommerce-login-nonce posted with ajax form then woocommerce_process_login_errors filter verifies captcha.

    Regards

    Thread Starter chiragveriheal

    (@chiragveriheal)

    Yes I am using WooCommerce frontend login. This form is working as click event. When user is click sign in button we are calling admin-ajax.php
    I can’t get that value in $_POST through. So I can verify.
    When I removed click event and go with .submit event it’s working.
    But I need click event for submit that login form with verify the Captcha.

    $(“.woocommerce-form-login__submit”).click(function(e){
    var username = $(“.woocommerce-form-login input[name=’username’]”).val();
    var password = $(“.woocommerce-form-login input[name=’password’]”).val();
    if(username != “” && password != “”){
    e.preventDefault();
    loginAPIHook(username, password);
    }
    });

    $username = $_POST[‘username’];
    $password = $_POST[‘password’];

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @chiragveriheal

    loginAPIHook calls what ever with ajax functionality it should have the woocommerce-login-nonce passed and woocommerce_process_login_errors? filter applied.

    Like it does for the general woo commerce login post back than only it will work.

    Regards

    Thread Starter chiragveriheal

    (@chiragveriheal)

    Okay Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce Frontside customer login form using admin-ajax to add math captcha’ is closed to new replies.