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

    (@kevinvess)

    Hi– thanks for using Force Login!

    Check out the FAQ for instructions on how to bypass Force Login based on any condition.

    Thread Starter singulismisa

    (@singulismisa)

    Thanks, I’m set. We just have a problem recovering your password. I open a recovery page, enter an email. I will receive a recovery link, but after confirmation, I am redirected to a forced login and will not allow me to open a new password. This is a variable address.

    I will open the page: https://singulis.net/obnova-hesla/

    Here’s the ok, but then I need to enable the following variable in force login: (example)

    https://singulis.net/obnova-hesla/?action=rp&key=EbQURjbFERAdnsx7UgN6&login=v****************z

    And here’s the problem, I can’t set it up. Can you help me, please?

    I have entered:

    /**
    * Filter Force Login to allow exceptions for specific URLs.
    *
    * @param array $whitelist An array of URLs. Must be absolute.
    * @return array
    */
    function my_forcelogin_whitelist( $whitelist ) {
    $whitelist[] = home_url( ‘/registrace/’ );
    $whitelist[] = home_url( ‘/obnova-hesla/’ );
    return $whitelist;
    }
    add_filter( ‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’ );

    • This reply was modified 5 years, 11 months ago by singulismisa.
    • This reply was modified 5 years, 11 months ago by singulismisa.
    Plugin Author Kevin Vess

    (@kevinvess)

    I see–?so, you’re using a custom registration screen/URL; which is why you need to whitelist this page.

    The whitelist URLs are absolute URLs, but your recovery link is a dynamic URL with a unique query string. The FAQ links to examples for adding exceptions for dynamic URLs.

    Checkout the Force Login Wiki on GitHub for examples of the different methods for whitelisting dynamic URLs.

    Thanks!

    Thread Starter singulismisa

    (@singulismisa)

    I tried it, but nothing worked for me, somewhere I make a mistake, but I don’t know where … don’t you have an example directly with my URL?

    Plugin Author Kevin Vess

    (@kevinvess)

    Checkout the Force Login Wiki on GitHub for examples of the different methods for whitelisting dynamic URLs.

    I recommend either Method 1 or Method 2 for your registration URL.

    If you need help with customizing this, I recommend you hire a developer.

    Thanks for using Force Login and good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enabling one registration form page’ is closed to new replies.