Top WooCommerce & WordPress Plugins › Forums › Email Verification for WooCommerce › Is it possible to require user to login after clicking the verification link?
- Support forum for the Email Verification for WooCommerce.
- This topic has 7 replies, 2 voices, and was last updated 2 years, 10 months ago by
WPFactory Plugins.
- AuthorPosts
- November 7, 2020 at 3:08 am #101201
alpha
ParticipantIs it possible to require user to login after clicking the verification link in the email?
November 7, 2020 at 3:19 pm #101202Hello Alpha,
Actually to log in after clicking the verification link is the default behaviour. What happens exactly after you click the verification link?
Also, would it be possible to share your settings with some screenshot maybe?
November 7, 2020 at 8:45 pm #101203alpha
ParticipantHi WPFactory,
When I click the verification url it automatically logs me in.
November 7, 2020 at 8:47 pm #101204alpha
ParticipantCurrently my settings are the default settings
November 7, 2020 at 11:43 pm #101205alpha
ParticipantI’ve narrowed it down to this =>
function verify() { …
wp_set_current_user( $user_id );
wp_set_auth_cookie( $user_id );
…}
in the core.php file. when i comment out these two lines, it forces the user to login. How can I add a wc notice here that the user needs to login to complete verification?November 8, 2020 at 12:50 am #101206alpha
ParticipantI have tested this out on a different site with just woocommerce, this plugin and wp smtp. Same issue, when you click the verification link it automatically logs you in.
November 8, 2020 at 3:29 pm #101207Just now I think I finally got what you’re asking.
You want to redirect the user to “My account” just after he clicks on the verification link, and instead of automatically log the user in, let him manually log in by entering his username and password. Is that right?
I’m afraid it’s not possible for now. But I’ll try to come up with something and will let you know as soon as I have some news about it 😉
December 3, 2020 at 7:23 pm #101208Hello alpha,
I’ve created a new option General > Login automatically on version 2.0.0. Please update the plugin and try to disable the option.
Let me know if that would work for you 😉
- AuthorPosts
- You must be logged in to reply to this topic.