Skip to content

Commit 4b75213

Browse files
[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.
1 parent 0693e98 commit 4b75213

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)