post

Automatically Login a User After Registration Using sfGuardPlugin in Symfony

When you want a user to be automatically logged in after they register, you can use the following code where you have access to the sfGuardUser module:

$this->getContext()->getUser()->signIn($user, true);

Speak Your Mind

*