I found this article: https://s2member.com/kb-article/auto-login-on-registration/
My question is, if I have a users data that was passed from a payment processor, and I’m able to authenticate they did in fact pay, so now I have their email address and everything else, so I can assign a password based upon their own data, and then email them the username and password.
Can I then auto log them in doing that as on that page? it appears that may be only if the use the action=register of the login page…
I want to make it where I just pass them through a page that will log them in, since they just paid and I just created the account upon their landing on the website, so is there a way to auto log that browser in?
I am using the wp_create_user, to create the account, then update the user with the data passed to the browser that I authenticate from the payment processor.
One account created per order_id… and the order_id is authenticated because before their browser gets there the payment processor hit the site with a webhook, so I’ve already verified the order_id is a paid one, so that way if they copied the url and changed the order_id it would not work, since the payment processor did not notify the website of the order_id…
Thus protecting the accounts.
can the browser, after I create their account, redirect them to a page like the one here: https://s2member.com/kb-article/auto-login-on-registration/ and auto log them in?
or am I correct, it only works with the action=register wp registration system?
Thanks,
-Richard