How to programmatically login/authenticate a user?
问题 I'd like to log the user in right after the registration process, without passing by the login form. Is this possible ? I've found a solution with FOSUserBundle , but I'm not using it on the project I'm actually working on. Here is my security.yml, I'm working with two firewalls. The plain text encoder is just for testing. security: encoders: Symfony\Component\Security\Core\User\User: plaintext Ray\CentralBundle\Entity\Client: md5 role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE