Direct login from confirmation email

Closed
Advanced Security - PHP Register/Login System Advanced Security - PHP Register/Login System September 01, 2018
Login to reply
Milos Stojanovic Support Agent
3 months ago

Hey Kumar,

By default, Vanguard does not work that way, but you can customize it to work like that if you want.

You can do that by customizing the confirmEmail method in app/Http/Controllers/Web/Auth/AuthController.php file and by adding the "Auth::login($user);" code before the redirect.

- Milos

Milos Stojanovic Support Agent
3 months ago
Thanks for creating a ticket! We'll get back to you as soon as we are back from vacation.
Kumar S
3 months ago

Is it possible to directly log in from the confirmation email instead of requiring users to login one more time?