• Resolved David Tierney

    (@big-dave)


    When users are already logged in, and they click an email link to the login page, then they end up being redirected to the wp-admin page by default.

    I need to redirect logged in users from the login page to home page. Is that possible with your plugin. And if not, since you got this code down, can you share a code snippet that will work if added to my functions file.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Collins Agbonghama

    (@collizo4sky)

    Can I see a link to your login page?

    And why are you pointing the email link point to your login page?

    Thread Starter David Tierney

    (@big-dave)

    Hi Collins,

    Thanks for your quick reply. I got a stomach bug and have been pre-occupied.

    So upon more thought, I do not think this will solve my problem, but since you asked, here are the answers.

    The login page is here:https://mmfh.org/login/

    Your question is a good one. I am using the GiveWP plugin for a donation based member organization. Those who wish to become a member submit a donation form that is set to create a user account for them upon form submission, but it also logs them into during that process.

    So then the members are sent an email saying essentially, Welcome, you can go here to login and here to reset your password. I have changed the email message part that says where to go to login (instead directing them to the home page where there is a login link) but I am still trying to solve the user flow problem of those members needing to somehow specify their password – which is designed to be done via a password reset link. If the person clicks the password reset link however, because they are logged in, they get redirected to the wp-admin page.

    So I am trying to solve this poor user interaction. One option was thinking to redirect logged in users to the home page rather than the wp-admin page. Although this solves the one problem, it just perpetuates the confusion that a person clicked a reset password link and ended up on the home page.

    The other solution which I am pursuing is to have GiveWP help me modify their Registration code so that the user is either not logged in when they are registered, or, they are immediately logged out if that is not possible.

    Complicated but that is what I am dealing with.

    Plugin Contributor Collins Agbonghama

    (@collizo4sky)

    I think you should submit this as a feature request to GiveWP to allow logged-in users to reset their passwords.

    Or you could use our other plugin ProfilePress that allows logged-in users to reset their password from a reset password link.

    See https://profilepress.net/article/create-custom-wordpress-password-reset-page/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘redirect logged in users from login page to home page’ is closed to new replies.