Skip to content

Prevent automatically logging in users #56

@Verso68

Description

@Verso68

Hi! So here’s the situation: I am selling different membership types in my website, not just one. I want to protect the signup and log in pages with an Unlock key, so only key owners can purchase a membership and login as subscribers.

So I protected the login form with the Unlock plugin. I don’t want anyone who doesn’t own a key to access that form as they could sell their key and still be able to log in. However, once the plugin validates the user’s key, the login form does not appear, and that is because the user has been ALREADY logged in.

Basically, it seems that the Unlock plugin automatically logs in users in Wordpress when it validates their key. Even though I unchecked the “Anyone can register” option at “Settings > General”, so Unlock won’t create new subscribers, it is not a solution. Yes, it does not create new subscribers, but oddly it still logs in users to Wordpress when their key is validated.

A solution for those people like me that sell different membership types (and we just want one lock contract, not a different lock contract/key for each membership), would be not to immediately log in users when the plugin detects the key. Just make the protected content visible, but not log in the user in any way —or at least give the option to choose if we want to log the users in, or just make the content available.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions