gestion de la connexion de l'utilisateur
This commit is contained in:
@@ -32,7 +32,17 @@ security:
|
||||
check_path: app_login
|
||||
enable_csrf: true
|
||||
logout:
|
||||
# où rediriger après la déconnexion
|
||||
path: app_logout
|
||||
# custom_authenticator: App\Security\AppCustomAuthenticator
|
||||
|
||||
remember_me:
|
||||
secret: '%kernel.secret%'
|
||||
lifetime: 604800
|
||||
path: /
|
||||
# by default, the feature is enabled by checking a checkbox in the
|
||||
# login form, uncomment the following line to always enable it.
|
||||
#always_remember_me: true
|
||||
# where to redirect after logout
|
||||
# target: app_any_route
|
||||
|
||||
@@ -45,8 +55,8 @@ security:
|
||||
# Note: Only the *first* matching rule is applied
|
||||
# autorisations
|
||||
access_control:
|
||||
# - { path: ^/admin, roles: ROLE_ADMIN }
|
||||
# - { path: ^/profile, roles: ROLE_USER }
|
||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||
- { path: ^/user, roles: ROLE_USER }
|
||||
|
||||
when@test:
|
||||
security:
|
||||
|
||||
Reference in New Issue
Block a user