I am using the registration form with several steps. After a new user registered with all the steps need to login to the dashboard page, I am getting the login credentials in the second step of registration and need to do the login functionality in step 5. I am using Auth component for the authentication. I need solution especially for version 2.0
How do I do this?
I am using the registration form with several steps. After a new user registered
Share
All you need to do is providing the login credentials in $this->request->data and call Auth->login().
That should automatically log this user in.