• Resolved voicetoons

    (@voicetoons)


    Almost dialed-in, thank you team.

    We have run into a very strange issue with user login..

    We now have Learn Press for our student training, and Ultimate Member for our Club Area. Both are separate memberships and have different logins / logouts obviously.

    Issue is: when a student user logins via the LP login page, they are sent to a LP profile, but have access to the Club Area. Yet if a LP student logins in like normal, they are sent to their LP profile properly,

    Thoughts?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi voicetoons,

    Thank you for reaching out.

    To help us diagnose this, could you please provide us with the following URLs:

    1. The URL of your login normal where students log in.
    2. The URL of the Club Area that a student is unexpectedly gaining access to.

    Knowing these URLs will allow us to investigate the login and redirect behavior on a live environment and understand why the permissions seem to be overlapping.

    We look forward to your response!

    Best regards,
    Brianvu-tp

    Thread Starter voicetoons

    (@voicetoons)

    LP loginhttps://www.vo101.com/lp-profile

    Club Areahttps://www.vo101.com/club-vo101

    Keep in mind for clarification:

    When a NON LP student who is a Club Area member, goes to the LP login at https://www.vo101.com/lp-profile they are logged in and land on the LP profile page. They should NOT have access to the LP profile if NOT a LP student and should be denied access since NOT a LP student.

    On the other hand, when a LP student logs in to the Club Area, they are sent to the Welcome Getting Started Page of the Club Area but have access to their LP account NOT the Club Area as should be being NOT a Club Area member. Very werid!

    NOTE: All logins and logout are correct and user roles have correct login and logout redirects. Just odd!

    (if need be we can email support the fake club user and the fake lp user to see what we mean and login credentials)

    Plugin Support brianvu-tp

    (@briantp)

    Hi voicetoons,

    Thank you for providing those URLs.

    It sounds like you have a clear use case:

    • A user who is a Club Area member but not an LP student should be redirected to the “Welcome Getting Started Page” of the Club Area after logging in, and should not have access to the LP profile page.
    • A user who is an LP student but not a Club Area member should be able to log into their LP account and access their LP profile, but not the Club Area content.

    By default, any user who logs in (regardless of their enrollment status) will have access to the LP profile page. LearnPress doesn’t have a built-in setting to redirect a user away from their profile based on whether they have purchased a course.

    To achieve the custom redirection and access control you’re looking for, it would require some custom code. You would need to add logic that checks a user’s role or enrollment status upon login and then redirects them to the appropriate page.

    Could you please confirm if our understanding of your desired flow is correct? If we’ve misunderstood your goal, please clarify, and we’ll be happy to help further.

    Best regards,
    Brianvu-tp

    Thread Starter voicetoons

    (@voicetoons)

    Thank you as usual great support! Let explain further (even with the lp redirect explanation which should be addressed maybe in future updates) It is more of a login matter than a redirect issue…

    1. If a LP student logs-in with thier credentials using the Club login (ulimate member plugin) they are sent to the Club Welcome page (incorrect) and are allowed to access the sites LP navigation links.
    2. If a LP student logs-in with thier credentials using the LP login, they’re sent to the LP profile as should be the case. (correct)
    3. If a NON LP student (club member) logs-in with thier CLUB credentials using the LP login (lp plugin) they are sent to the LP profile (incorrect) and are allowed to access the sites CLUB navigation links.
    4. If a NON LP student (club member) logs-in with thier CLUB credentials using the Club login, they’re sent to the Club Welcome page (correct) and are allowed to access the sites CLUB navigation links.

    I’m not sure how to explain the login issue further, sorry if it is still confusing. Thank you kindly.

    Plugin Support brianvu-tp

    (@briantp)

    Hi voicetoons,

    Thank you for the explanation

    Let me summarize my understanding to make sure we’re on the same page:

    You have two separate login pages:

    1. LP Login Page (using LearnPress)
    2. Club Login Page (using Ultimate Member)

    And you have two types of users:

    1. LP Students (who are not Club members)
    2. Club Members (who are not LP students)

    Is it correct that you want the following behavior to occur:

    • If a Club Member logs in using the LP Login Page, they should be redirected to the Club Welcome Page?
    • And if an LP Student logs in using the Club Login Page, they should be redirected to the LP Profile Page?

    Please let me know if this accurately reflects what you’re trying to achieve.

    Best regards,
    Brianvu-tp

    Thread Starter voicetoons

    (@voicetoons)

    Kinda….We just do NOT want Club Members to be able to login using the LP login or LP users NOT be able to login using the Club login. They are not registered to do so eitherway. Yes as you stated it is the way it should be. Never seen this before 🙂 Users should only be able to login where they are registered. Right? If not should they not get a warning that username and password is incorrect for that login? Sorry but this is very weird and we have everythng set-up and roles right in both plugins. If need be I’ll send admin again.

    Plugin Support brianvu-tp

    (@briantp)

    Hi voicetoons,

    Thank you for clarifying.

    The LP login page are essentially just custom-styled interfaces for the core WordPress login system. Because of this, any user with a registered account on your site can technically log in using either the LP login form or the Ultimate Member login form. The different plugins then handle the redirect and permissions based on their settings, which is why you’re seeing the unexpected cross-platform access.

    To achieve what you’re looking for that is, to restrict a user’s login access to only one specific login form based on their role would require a custom code solution. LearnPress does not have a built in feature to filter login attempts by user role or origin. A custom function would be needed to check a user’s role on login and prevent them from proceeding if they are using the “wrong” login page.

    Thank you again for your patience and for helping us understand this complex issue.

    Best regards,
    Brianvu-tp

    Thread Starter voicetoons

    (@voicetoons)

    Thank you for all your patience. It is now understood. So to be clear, there is no way to control where they are sent once they login using the LP login? Defaults to profile? Which is fine.

    It seems to Ultimate plugin does offer that based on a users loggin / role when using the UM plugin, but does not redirect based on user role even if set to LP Student in wp/admin/users or in UM setting roles.

    Forum and support is not as “helpful” as you are. (awesome) Thank you again my friend.

    Plugin Support brianvu-tp

    (@briantp)

    Hi voicetoons,

    I’m glad we were able to clarify the situation.

    We’re happy we could help you understand the core issue and how the plugins are interacting.

    Best regards,
    Brianvu-tp

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.