-
Notifications
You must be signed in to change notification settings - Fork 17
Description
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!