• Resolved reyerm

    (@reyerm)


    I am using PaidMemberships pro membership plugin. Adding a user directly from admin under sends a valid email with a password reset link, but the email is bland so i wanted to use your plugin to improve. It works well, however it is produces incorrect path in the reset link and thus is hitting an error “Your reset password key is invalid.”. It is redirecting to /wp-login (std WP), whereas usually with the PaidMemberships Pro plugin installed it would go to the /login page. If I disable BNFW it works again (but is bland email of course ;))

    I have check with PMP and they believe the “issue” lies within BNFW. Should BNFW be compatible for PMP?

    Any easy fix?
    thanks! Reyer

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @reyerm,
    Thanks for your message.

    A few people have mentioned similar issues with other membership plugins. The issue is that they all use a different way of changing the login URL and not all of them are done in a way where I can retrieve this programatically using BNFW in order to change the password reset URL when a membership plugin is detectably installed.

    My recommendation for this at present is to create a regex redirect that will take the URL that you get from BNFW and change it into the one that your membership plugin of choice will understand.
    This is somewhat covered in this thread, which may help: https://wordpress.org/support/topic/possible-to-change-url-generated-by-password_url/

    Let me know how you get on?

    ndeuter

    (@ndeuter)

    Can you give an example of a regex redirect so we can work around?

    Plugin Author bnfw

    (@voltronik)

    Hi @ndeuter,
    Each redirect for each membership site would be different so it would be difficult to provide an example that could be easily adapted.
    If you need a regex tester though, I often use this: https://regexr.com/

    ndeuter

    (@ndeuter)

    Thanks! I’ll try my luck!

    Plugin Author bnfw

    (@voltronik)

    Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.

    Hi all,

    This redirection should work with Paid Memberships Pro:

    RewriteRule ^wp-login.php(.*) https://yourdomainhere.com/login/$1 [R=301,L]

    Use the redirection plugin if you’re not familiar with editing .htaccess

    Plugin Author bnfw

    (@voltronik)

    Thanks for sharing @webedgeaus,
    That’s helpful.

    Sorry please disregard the above, causes a login loop for users. Still working on a solution for this. Will post when I find it.

    I believe this works. Tested with Paid Memberships Pro ver 2.5.6 and the latest version of BNFW, WordPress 5.6.2

    RewriteRule ^wp-login.php?action=rp(.*) https://YOURDOMAIN.COM.AU/login/?action=rp$1 [R=301,L]

    Just make sure you replace /login/ with whichever page you’ve assigned PMPro as your login page.

    Thread Starter reyerm

    (@reyerm)

    Thanks very much for that update, as I tried the previous one briefly yesterday but it was getting stuck at login page (due to other wp-login paths being incorrectly converted too). I suspected your later approach or something more specific like that could work. I’ll give it a try later.

    Thread Starter reyerm

    (@reyerm)

    Oh dear so close yet not quite.

    It is correctly redirecting but now finds the reset key to be invalid. Could the key somehow be in part based on the address?

    Redirect ends up at :
    https://www.mycube4change.com/login/?login=invalidkey

    Message returned to login page:
    Your reset password key is invalid.

    @voltronik any ideas if within the BNFW logic?

    thanks again to you both!

    Try this, need to account for the query string.

    RewriteRule ^wp-login.php\?action=rp(.*) https://YOURDOMAIN/login/%5C?action=rp$1 [R=301,L]

    Thread Starter reyerm

    (@reyerm)

    Thanks!
    Unfortunately no luck. Seems to produce same format path ayhow (with diff key of course). I think it is working from regex perspective but the key itself is not valid.

    https://www.mysite.com/wp-login.php?action=rp&key=qni9xxxxxxxxxxxxxxf8&login=reyerm.test107

    Strange, have tried with five of my members now and still working in our setup.

    Caching plugin may cause issues also. Try alternate browser as well as clearing all cache.

    Thread Starter reyerm

    (@reyerm)

    p.s.
    For interest this works:

    RewriteRule ^wp-login.php?(.*) https://app.mydomain.com/$1 [R,L]

    But as soon as i try get more specific with action=rp (or even just the a!) it breaks. maybe something to do with repeated rewrites or the ? character being reserved

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Password reset link invalid’ is closed to new replies.