Loading module/Application/src/Application/Controller/IndexController.php +5 Changes for module/Application/src/Application/Controller/IndexController.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,11 @@ class IndexController extends AbstractController if ($this->identity() && count($this->userContextService->getSelectableIdentityRoles()) === 0) { // déconnexion applicative $this->zfcUserAuthentication()->getAuthAdapter()->resetAdapters(); $this->zfcUserAuthentication()->getAuthAdapter()->logoutAdapters(); $this->zfcUserAuthentication()->getAuthService()->clearIdentity(); return $this->redirect()->toRoute('not-allowed'); } Loading Loading
module/Application/src/Application/Controller/IndexController.php +5 Changes for module/Application/src/Application/Controller/IndexController.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,11 @@ class IndexController extends AbstractController if ($this->identity() && count($this->userContextService->getSelectableIdentityRoles()) === 0) { // déconnexion applicative $this->zfcUserAuthentication()->getAuthAdapter()->resetAdapters(); $this->zfcUserAuthentication()->getAuthAdapter()->logoutAdapters(); $this->zfcUserAuthentication()->getAuthService()->clearIdentity(); return $this->redirect()->toRoute('not-allowed'); } Loading