Ajout redirection lorsque déconnecté pour une requête ajax
This commit is contained in:
parent
7ad5d38cba
commit
3e045c2999
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user