Skip to content

Commit 4017cef

Browse files
committed
minor #19837 [Security] : Redirect user to profile page (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] : Redirect user to profile page Page: https://symfony.com/doc/5.x/security/custom_authenticator.html The homepage is public. After login, you should redirect the user to some *protected* page. Commits ------- 4b75213 [Security]: Redirect user to profile page
2 parents b5e7901 + 4b75213 commit 4017cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_authenticator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ can define what happens in these cases:
163163
``onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response``
164164
If the user is authenticated, this method is called with the
165165
authenticated ``$token``. This method can return a response (e.g.
166-
redirect the user to the homepage).
166+
redirect the user to their profile page).
167167

168168
If ``null`` is returned, the request continues like normal (i.e. the
169169
controller matching the login route is called). This is useful for API

0 commit comments

Comments
 (0)