Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter OC WordPress Web Designer

    (@oc-wordpress-web-designer)

    Update. Nevermind. Figured it out. I added the bypass for /lost-password/ not for wp-login.php

    /**
    * Bypass Force Login to allow for exceptions.
    *
    * @param bool $bypass Whether to disable Force Login. Default false.
    * @return bool
    */
    function my_forcelogin_bypass1( $bypass ) {
    // Get visited URL without query string
    $url_path = preg_replace(‘/\?.*/’, ”, $_SERVER[‘REQUEST_URI’]);

    // Allow URL
    if ( ‘/lost-password/’ === $url_path ) {
    $bypass = true;
    }

    // Allow filename URL
    if ( ‘/lost-password.php’ === $url_path ) {
    $bypass = true;
    }

    return $bypass;
    }
    add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass1’ );

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    I’m glad you solved your issue. However, the default WordPress login screen (wp-login.php) should already be whitelisted by the plugin. Unless you’re using a custom login/lost-password URL –?you shouldn’t need to add anything extra.

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks!

    Thread Starter OC WordPress Web Designer

    (@oc-wordpress-web-designer)

    Yeah, we are using a custom login/password reset page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password Reset Problem’ is closed to new replies.