conf logout

This commit is contained in:
Kayn Ty 2018-04-25 17:38:45 +02:00
parent 4a4a0b8596
commit eeb38c694a

View File

@ -1,6 +1,7 @@
# To get started with security, check out the documentation: # To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html # https://symfony.com/doc/current/security.html
security: security:
encoders: encoders:
FOS\UserBundle\Model\UserInterface: bcrypt FOS\UserBundle\Model\UserInterface: bcrypt
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
@ -11,6 +12,9 @@ security:
secured_area: secured_area:
anonymous: ~ anonymous: ~
logout_on_user_change: true logout_on_user_change: true
logout:
path: /logout
target: /login
oauth: oauth:
resource_owners: resource_owners:
# facebook: "/login/check-facebook" # facebook: "/login/check-facebook"
@ -35,7 +39,9 @@ security:
provider: fos_userbundle provider: fos_userbundle
csrf_token_generator: security.csrf.token_manager csrf_token_generator: security.csrf.token_manager
default_target_path: dashboard default_target_path: dashboard
logout: true logout:
path: /logout
target: /login
anonymous: true anonymous: true
logout_on_user_change: true logout_on_user_change: true
# https://symfony.com/doc/current/security/form_login_setup.html # https://symfony.com/doc/current/security/form_login_setup.html