Skip to main content

Command Palette

Search for a command to run...

Symfony Manually login user

Published
1 min read

https://ourcodeworld.com/articles/read/459/how-to-authenticate-login-manually-an-user-in-a-controller-with-or-without-fosuserbundle-on-symfony-3

https://gist.github.com/azhararmar/0a952cf03b1cfbd2a5b059089b764491#file-symfony-manual-user-authentication

    $guardHandler->authenticateUserAndHandleSuccess($user, $request, $authenticator, 'main');