• Resolved behruzjahangiri

    (@behruzjahangiri)


    Hello Force Login!

    Thank you for a wonderfull plugin!

    We’re expericing some small issues which is:

    On the login page, it’s not possible for our customers to reset their password. It’s keep looping and i was wondering what could cause this?

    I’d like to mention, that we have WPengine as host & that We’re fully update with WordPress (4.9.1) & PHP 7.0.

    We also run WooCommerce on the site.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi–?thanks for using Force Login!

    I suspect the issue might be related to WooCommerce. I assume the reset password email links the user to a WooCommerce page, /my-account/lost-password/, instead of the default WordPress lost-password page.

    I think you should try using the v_forcelogin_bypass filter with WooCommerce Conditional Tags instead. Something like this:

    /**
     * Bypass Force Login to allow for exceptions.
     *
     * @return bool Whether to disable Force Login. Default false.
     */
    function my_forcelogin_bypass( $bypass ) {
      if ( class_exists( 'WooCommerce' ) ) {
        if ( is_wc_endpoint_url( 'lost-password' ) ) {
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter('v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 1);
Viewing 1 replies (of 1 total)
  • The topic ‘Forgot my password Issue’ is closed to new replies.