• Resolved berrondom

    (@berrondom)


    When I create a new user on the admin panel it generates an email with a reset password token link.

    The reset password link takes the following format: mydomain.com/wp-login.php?action=rp&key=324m2k3fe0s23fs&login=username

    There is also a link to the PMPro login page without the token: mydomain.com/login-2/

    Clicking on the reset password link automatically redirects to the PMPro login page but with a key invalid error. If I reset the password and generate a reset password email, the reset password link is almost the same, but instead of wp-login.php in the string, it has login-2 in the string, and that link works just fine.

    I have deactivated all plugins and narrowed it down to the PMPro plugin only. ie, if I have zero plugins, it works fine, if I just add PMPro plugin, I get the same error on creating a new user from the admin panel.

    Thanks.

    • This topic was modified 3 years, 10 months ago by berrondom.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @berrondom

    Thank you for using Paid Memberships Pro, I’m really sorry to hear about this issue you are facing.

    To confirm, you have setup the Paid Memberships Pro login page under the “Memberships” > “Settings” > “Page Settings” area to point to your login-2 URL?

    I am going to try and replicate this issue on my end for the time being and take a look at the code base. I’ll revert back as soon as possible.

    Thread Starter berrondom

    (@berrondom)

    Hi Andrew,
    Thanks for the quick reply.
    I don’t see Page Settings. I see Pages and all the different pages are routed to the correct ones. The login link everywhere else seems to work just fine, just on the link from the registration that it has problems.

    Thanks

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for the feedback @berrondom, we’re going to continue working on replicating this issue.

    As an alternative, you may use the default WordPress login page for the time being until this issue is resolved.

    Thread Starter berrondom

    (@berrondom)

    Hi Andrew,
    Any updates or luck reproducing the issue?
    A little more information that might help. The login-2 page was created with divi and just has the login incorporated using the shortcode: [pmpro_login]

    Thanks

    Hi,
    I also have same problem.
    It was redirected “/login/?login=invalidkey”

    Thanks

    Plugin Author Andrew Lima

    (@andrewza)

    I have just tested creating a new user via the WordPress dashboard and it works as intended. I haven’t been able to recreate this issue. This points to the wp-login.php URL and this URL never get’s redirected by Paid Memberships Pro functionality (as a failsafe).

    The first link points to wp-login.php and the second link just points to the login URL (Paid Memberships Pro login page set) @berrondom. If the user navigates to the password reset link, they shouldn’t be redirected away. (Unless you have another plugin redirecting away from the wp-login.php)

    We are still busy investigating some tests with popular plugins that may alter this function too. To prevent this from being an issue, you can set the log in page to “Use WordPress Default” for the time being.

    Plugin Author Jason Coleman

    (@strangerstudios)

    Hi, everyone. Sorry for the delay in getting this fixed.

    We have a patch for this and will be including the fix in the 2.3.4 release of PMPro, which should go out later tonight or sometime tomorrow.

    If you are curious, here the is the change in our code to support this:
    https://github.com/strangerstudios/paid-memberships-pro/commit/db28aa9cd61590f6a8f54ef20822285f950fb2e4

    I am doing a bit of further testing to handle different error cases when changing passwords and testing new user emails and password resets on multisite networks. There may be further changes to support that.

    Thanks again for your help in finding this issue and getting it fixed.

    If you run into issues after updating to 2.3.4, let us know.

    Thread Starter berrondom

    (@berrondom)

    Thank you! This worked great.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘new user email link leads to invalid key error’ is closed to new replies.