Lors d'une requete ajax on redirige le tout vers la page de déconnexion
This commit is contained in:
parent
95c9cef2f3
commit
ffa165dd3d
@ -58,7 +58,12 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
|
|||||||
$auth->clearIdentity();
|
$auth->clearIdentity();
|
||||||
$session = new Zend_Session_Namespace('login');
|
$session = new Zend_Session_Namespace('login');
|
||||||
$session->url = $_SERVER['REQUEST_URI'];
|
$session->url = $_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
|
$layout = Zend_Layout::getMVCInstance();
|
||||||
|
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
|
//Authentifié => on met à jour la session
|
||||||
|
Loading…
x
Reference in New Issue
Block a user