Title: Password Reset Problem
Last modified: May 9, 2019

---

# Password Reset Problem

 *  Resolved [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/)
 * (@oc-wordpress-web-designer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/password-reset-problem-8/)
 * Your plugin works great but I can’t seem to figure our how to get the password
   reset emailed link to get bypassed. I have a whitelist (code below) but the emailed
   password reset links doesn’t bypass
 * [http://www.staging.telleyz.com/wp-login.php?action=rp&key=hfhfhghghf&login=allcalmarketing%40gmail.com](http://www.staging.telleyz.com/wp-login.php?action=rp&key=hfhfhghghf&login=allcalmarketing%40gmail.com)
 * which is in the email that redirects to
 * [http://www.staging.telleyz.com/lost-password/?action=rp&login=allcal&key=hfhfhghghf](http://www.staging.telleyz.com/lost-password/?action=rp&login=allcal&key=hfhfhghghf)
 * Staging domain: [http://www.staging.telleyz.com](http://www.staging.telleyz.com)
 * ================
    How do I fix this? =================
 * function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = home_url( ‘/
   login/’ ); $whitelist[] = home_url( ‘/’ ); $whitelist[] = home_url( ‘/location/’);
   $whitelist[] = home_url( ‘/register/’ ); $whitelist[] = home_url( ‘/activate/’);
   $whitelist[] = home_url( ‘wp-login.php’ ); $whitelist[] = home_url( ‘/lost-password/’);
 *  return $whitelist;
    } add_filter( ‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’);
    -  This topic was modified 7 years, 1 month ago by [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpassword-reset-problem-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/)
 * (@oc-wordpress-web-designer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/password-reset-problem-8/#post-11513906)
 * 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](https://wordpress.org/support/users/param/)
   bool $bypass Whether to disable Force Login. Default false. * [@return](https://wordpress.org/support/users/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’);
    -  This reply was modified 7 years, 1 month ago by [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/).
 *  Plugin Author [Kevin Vess](https://wordpress.org/support/users/kevinvess/)
 * (@kevinvess)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/password-reset-problem-8/#post-11513978)
 * 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](https://wordpress.org/support/plugin/wp-force-login/reviews/?rate=5#new-post)
   my plugin to let others know how you like it.
 * Thanks!
 *  Thread Starter [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/)
 * (@oc-wordpress-web-designer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/password-reset-problem-8/#post-11513999)
 * 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.

 * ![](https://ps.w.org/wp-force-login/assets/icon.svg?rev=1904031)
 * [Force Login](https://wordpress.org/plugins/wp-force-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-force-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-force-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-force-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-force-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-force-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [OC WordPress Web Designer](https://wordpress.org/support/users/oc-wordpress-web-designer/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/password-reset-problem-8/#post-11513999)
 * Status: resolved