We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 636518b commit 8d61936Copy full SHA for 8d61936
security.rst
@@ -1657,7 +1657,12 @@ You can log in a user programmatically using the ``login()`` method of the
1657
// you can also log in on a different firewall
1658
$security->login($user, 'form_login', 'other_firewall');
1659
1660
- // ... redirect the user, e.g. to their account page
+ // use the redirection logic applied to regular login,
1661
+ $redirectResponse = $security->login($user);
1662
+ return $redirectResponse;
1663
+ // or use a specific redirection logic
1664
+ // (redirect the user to its account page for instance)
1665
+ // ...
1666
}
1667
1668
0 commit comments