Support » Plugin: Force Login » Password Reset Problem

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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


    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.


    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.