Commit 345436e2 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

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

parent c89fb672
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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);
        }
        $this->getCasClient()->logoutWithRedirectService($returnUrl);
    }

    /**