From eeb38c694a1a90e7011264028e1135852d320291 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Wed, 25 Apr 2018 17:38:45 +0200 Subject: [PATCH] conf logout --- app/config/security.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/config/security.yml b/app/config/security.yml index 08334158..dfba55de 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -1,6 +1,7 @@ # To get started with security, check out the documentation: # https://symfony.com/doc/current/security.html security: + encoders: FOS\UserBundle\Model\UserInterface: bcrypt # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded @@ -11,6 +12,9 @@ security: secured_area: anonymous: ~ logout_on_user_change: true + logout: + path: /logout + target: /login oauth: resource_owners: # facebook: "/login/check-facebook" @@ -35,7 +39,9 @@ security: provider: fos_userbundle csrf_token_generator: security.csrf.token_manager default_target_path: dashboard - logout: true + logout: + path: /logout + target: /login anonymous: true logout_on_user_change: true # https://symfony.com/doc/current/security/form_login_setup.html