Correction appel url localauth

This commit is contained in:
Michael RICOIS 2012-03-27 11:58:22 +00:00
parent 78ffd58568
commit 767da50d89

View File

@ -77,7 +77,7 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$session->url = $_SERVER['REQUEST_URI']; $session->url = $_SERVER['REQUEST_URI'];
$layout = Zend_Layout::getMVCInstance(); $layout = Zend_Layout::getMVCInstance();
if ( !$layout->isEnabled() && $session->url!='/localauth') { if ( !$layout->isEnabled() && substr($session->url,0,10)!='/localauth') {
echo "Identification incorrect ou périmé."; echo "Identification incorrect ou périmé.";
} else { } else {
$this->_response->setRedirect('/user/login')->sendResponse(); $this->_response->setRedirect('/user/login')->sendResponse();