From 3e045c2999cab327848740f07241fe6b8cd33946 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 9 Sep 2011 12:27:28 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20redirection=20lorsque=20d=C3=A9connect?= =?UTF-8?q?=C3=A9=20pour=20une=20requ=C3=AAte=20ajax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Application/Controller/Plugin/Auth.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/library/Application/Controller/Plugin/Auth.php b/library/Application/Controller/Plugin/Auth.php index 590832bec..dcb78881f 100644 --- a/library/Application/Controller/Plugin/Auth.php +++ b/library/Application/Controller/Plugin/Auth.php @@ -60,12 +60,10 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract $session->url = $_SERVER['REQUEST_URI']; $layout = Zend_Layout::getMVCInstance(); - if (!$layout->isEnabled()) - { + if (!$layout->isEnabled()){ $this->_response->setRedirect('/user/logout')->sendResponse(); - } - $this->_response->setRedirect('/user/login')->sendResponse(); - + } + $this->_response->setRedirect('/user/login')->sendResponse(); //Authentifié => on met à jour la session } else {