Commit 345436e2 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Correction de bug empêchant de se déconnecter vraiment dans certains cas

parent c89fb672
......@@ -108,11 +108,9 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
return; // NB: l'authentification CAS est désactivée ssi le tableau des options est vide
}
if ($this->getCasClient()->isAuthenticated()) {
$router = $this->getServiceManager()->get('router'); /* @var $router TreeRouteStack */
$returnUrl = $router->getRequestUri()->setPath($router->getBaseUrl())->toString();
$this->getCasClient(false)->logoutWithRedirectService($returnUrl);
}
$router = $this->getServiceManager()->get('router'); /* @var $router TreeRouteStack */
$returnUrl = $router->getRequestUri()->setPath($router->getBaseUrl())->toString();
$this->getCasClient()->logoutWithRedirectService($returnUrl);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment