• Resolved Kaccho

    (@ouka1102)


    Hi,

    I have an issue of password reset.

    From the login page that contains a shortcode of [pmpro_login], I click “Lost Password?” link and redirected to a URL with “?action=reset_pass”.

    By inputting a username or email address, I click on “Get New Password” button. Then I am redirected to first [pmpro_login] page but the URL is now “?action=lostpassword”. And I don’t receive email.

    Can anyone see how I can solve this problem?

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @ouka1102

    Thank you for using Paid Memberships Pro.

    We use query parameters to swap the login page form to the relevant page for forgot password or password reset.

    You mentioned that you don’t receive the email, please can you install a mail logging plugin to track what emails are sent from your site. This may help us determine if there are errors with your emails in general or specifically for Paid Memberships Pro emails.

    You may also enable WordPress debugging by following this guide and recreate the issue you are facing, this may help us determine if there are any fatal errors on your site.

    Thread Starter Kaccho

    (@ouka1102)

    Hi,

    Thank you very much for your kind reply.

    I was able to receive an email for password reset, but still can not complete the operation.

    Starting from a page that contains [pmpro_login].

    domain/login/

    domain/login/?action=reset_pass

    domain/login/?checkemail=confirm

    I was able to receive an email. It attached a link to reset password.

    domain/account/?action=rp&key=Mvry6EP562kXgMbxw9lB&login=katsufumi

    After clicking the link and specifying a new password, it returns “The password reset key is invalid”.

    I think the directory “account” instead of “login” causes this problem.
    Do you think the problem can be solved If I can edit password reset email template to make reset password like contain “login” directory?

    I have found a similar topic in this forum but it doesn’t look like the problem is solved either.

    Hopefully I can find a solution to it.

    Best wishes,

    Plugin Author Andrew Lima

    (@andrewza)

    That sounds like the issue, can you tell me what page URL you have set to the Paid Memberships Pro Log In page?

    Is it set to your /login/ page or the /account/ page?

    Thread Starter Kaccho

    (@ouka1102)

    Thank you for your reply.

    Dashboard > Membership > Settings > Pages > Login Page

    This is set to /login/.

    Plugin Author Andrew Lima

    (@andrewza)

    This code snippet may help, it bypasses the redirect for the wp-login password reset URL and stops the emails from being rewritten – https://gist.github.com/andrewlimaza/aa319e2f8ea8bff3c2b51da330bd84f1

    The URL generated should be yoursite.com/login and not /account – I’m not sure if you’re using a multi-language plugin that may also be interfering with this.

    Thread Starter Kaccho

    (@ouka1102)

    Thank you for your message.
    The pmpro-customizations.php became like following image. Am I OK?

    https://prnt.sc/13h59oi

    But the email sent from WP to the user’s address still shows “domain/account”.

    I am using 001 Prime Strategy Translate Accelerator and Loco Translate.
    I tried by deactivating those plugins and the result was the same.

    Thanks,

    Plugin Author Andrew Lima

    (@andrewza)

    Something else may be interfering with this email content, does this issue persist with only Paid Memberships Pro enabled?

    Thread Starter Kaccho

    (@ouka1102)

    This issue persists when PMPro is disabled.

    The theme author asks me to assign Dashboard>Membership>Settings>Pages>LoginPage as WordPress default.

    I think this is the problem.

    What do you think? Any suggestion?

    Plugin Author Andrew Lima

    (@andrewza)

    You can set this to “Use WordPress Default”, please let me know if this helps.

    If this issue persists without Paid Memberships Pro active, this may be coming from another plugin or your theme.

    Thread Starter Kaccho

    (@ouka1102)

    Yes, it works when I “Use WordPress Default”.

    In this case, “Regsiter Now” link is also displayed and it redirects to domain/account/?action=register. If anyone register through there, they are out of membership levels. I only want [pmpro_levels] appeared when anyone tries to register.

    Can this be possible?

    Plugin Author Andrew Lima

    (@andrewza)

    You would need to create a custom redirect as the login page set inside Paid Memberships Pro should be used for login functionality only and not user registration.

    Thread Starter Kaccho

    (@ouka1102)

    Thank you.
    Is there PMPro customization service? Otherwise I will look into solution.

    Thanks,

    Plugin Author Andrew Lima

    (@andrewza)

    There isn’t a service, you may reach out to a local WordPress developer for assistance.

    Thanks for understanding.

    Thread Starter Kaccho

    (@ouka1102)

    I understand and hired a plugin developer.
    He built a PMPro plugin to work this out.

    Thanks,

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘PMPro Password Reset’ is closed to new replies.