From c7c1f9caa7a87763f67493701608c83f5842e956 Mon Sep 17 00:00:00 2001 From: afornerot Date: Tue, 10 Jan 2023 16:11:12 +0100 Subject: [PATCH] maj nineskeletor --- src/Controller/SecurityController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 41ff737..eda7e3f 100755 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -371,7 +371,7 @@ class SecurityController extends AbstractController return $this->redirect($this->generateUrl('app_home')); } - + public function logoutOPENID(Request $request) { $accesstoken = $request->getSession()->get('oauthAccesstoken'); @@ -382,7 +382,7 @@ class SecurityController extends AbstractController $request->getSession()->invalidate(); $url = $this->getParameter('oauthLogouturl'); - if ($url) { + if ($url && $idtoken) { $callback = ($request->isSecure() ? 'https://' : 'http://').str_replace('//', '/', $this->getParameter('appWeburl').$this->getParameter('appAlias').$this->generateUrl('app_home')); $callback = substr($callback, 0, -1);