File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1657,15 +1657,19 @@ You can log in a user programmatically using the ``login()`` method of the
1657
1657
// you can also log in on a different firewall
1658
1658
$security->login($user, 'form_login', 'other_firewall');
1659
1659
1660
- // use the redirection logic applied to regular login,
1660
+ // use the redirection logic applied to regular login
1661
1661
$redirectResponse = $security->login($user);
1662
1662
return $redirectResponse;
1663
- // or use a specific redirection logic
1664
- // ( redirect the user to its account page for instance )
1665
- // ...
1663
+
1664
+ // or use a custom redirection logic (e.g. redirect users to their account page)
1665
+ // return new RedirectResponse(' ...');
1666
1666
}
1667
1667
}
1668
1668
1669
+ .. versionadded :: 6.3
1670
+
1671
+ The feature to use a custom redirection logic was introduced in Symfony 6.3.
1672
+
1669
1673
.. _security-logging-out :
1670
1674
1671
1675
Logging Out
You can’t perform that action at this time.
0 commit comments