From 2e3cd986403c9e84f614bc450f9782f1e9d57ac1 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 12 Sep 2018 19:28:39 +0200 Subject: [PATCH] Added logout function --- application/config/packages/security.yaml | 4 +++- application/config/routes.yaml | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/application/config/packages/security.yaml b/application/config/packages/security.yaml index d029d06..325e31e 100644 --- a/application/config/packages/security.yaml +++ b/application/config/packages/security.yaml @@ -18,7 +18,9 @@ security: form_login: login_path: login check_path: login - + logout: + path: /logout + target: / # activate different ways to authenticate # http_basic: true diff --git a/application/config/routes.yaml b/application/config/routes.yaml index c3283aa..aa7239c 100644 --- a/application/config/routes.yaml +++ b/application/config/routes.yaml @@ -1,3 +1,2 @@ -#index: -# path: / -# controller: App\Controller\DefaultController::index +logout: + path: /logout