• Resolved compsciprinciples

    (@compsciprinciples)


    No matter what the error is on my login page (wrong pw, user doesn’t exist, blank field, et,), it always displays: “Your account has to be activated before you can login. You can resend the email with verification link by clicking here.”

    When the user exists, the link “here” works as expected. All other times it is a link to the default login redirect page.

    How can I only have that message show up when the user exists, but has not verified their email?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter compsciprinciples

    (@compsciprinciples)

    Not sure if there was an easy fix, but I went into class-alg-wc-ev-messages.php and update the get_error_message function to the following:

    function get_error_message( $user_id ) {
    if(get_user_by( ‘id’, $user_id)){
    $notice = do_shortcode( get_option( ‘alg_wc_ev_error_message’,
    __( ‘Your account has to be activated before you can login. You can resend the email with verification link by clicking here.’, ’emails-verification-for-woocommerce’ ) ) );
    }
    else {
    $notice = ”;// code…
    }
    return str_replace( ‘%resend_verification_url%’, $this->get_resend_verification_url( $user_id ), $notice );
    }

    Plugin Author WPFactory

    (@wpcodefactory)

    Hi @compsciprinciples ,

    I just created a new option for you on the advanced section called:
    – Authenticate filter

    It’s available on the version 2.0.2 that I just released.

    Please try to use the “authenticate” value there and let me know if you got good results ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error message even if user does not exist’ is closed to new replies.