• Resolved fabrybus

    (@fabrybus)


    Hi guys!
    First of all thank you for your plugin! It works well!

    Just a quick question (I’m sure it’s a “my problem with codes”)

    I already used the code you guys provided here (“Bypass Force Login to allow for exceptions”) and it actually worked for the first URL (landing page I’m using) but it doesn’t work for the WordPress “Forgot Password” link (its redirecting to the same Login Page)

    Screenshot of the code attached here

    Any suggestions why this is happening?

    Thank you for your time

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

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

    (@kevinvess)

    Hi– thanks for using Force Login!

    I suspect the issue is that you’re trying to bypass a dynamic URL using an absolute URL path.

    The lost password page typically passes a unique identifier as a query string, /?key=XXXXXXXX, which will not match exactly your absolute URL.

    I recommend you code your conditional statement to use the WordPress Conditional Tags or something similar to determine if the visitor is on the lost password page to then bypass it.

    Also–?it looks like you copied the entire bypass example from the FAQ. Just wanted to confirm that you realize that your code is allowing visitors to access ALL Posts with the if statement above your absolute URL statement?

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Forgot Password Redirect’ is closed to new replies.