Skip to content

Commit 8ddda81

Browse files
committed
redirect before login
1 parent eadaddb commit 8ddda81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/packages/security.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ security:
2020
login_path: app_login
2121
check_path: app_login
2222
enable_csrf: true
23+
default_target_path: admin
2324
logout:
2425
path: app_logout
2526
# where to redirect after logout
26-
target: admin
27+
target: homepage
2728

2829
# activate different ways to authenticate
2930
# https://symfony.com/doc/current/security.html#the-firewall

0 commit comments

Comments
 (0)