diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index b79d86799..f724a301b 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -388,8 +388,11 @@ class UserController extends Zend_Controller_Action Zend_Auth::getInstance()->clearIdentity(); $this->_helper->layout()->disableLayout(); + $request = $this->getRequest(); + $message = $request->getParam('message'); + $this->view->assign('message', $message); + $url = 'http://www.scores-decisions.com/'; - $refresh = 5; if (APPLICATION_ENV != 'production'){ $url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array( diff --git a/library/Application/Controller/Plugin/Auth.php b/library/Application/Controller/Plugin/Auth.php index f36f161ab..9cb7f7523 100644 --- a/library/Application/Controller/Plugin/Auth.php +++ b/library/Application/Controller/Plugin/Auth.php @@ -37,14 +37,20 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract $authAdapter = new WebAuthAdapter($login, $hach, $iponly); $result = $auth->authenticate($authAdapter); + + $firebug = Zend_Registry::get('firebug'); + $firebug->info($result); + + if (!$result->isValid()) { - $this->view->message = ''; + $messageF = ''; foreach ($result->getMessages() as $message) { - $this->view->message.= $message."
"; + $messageF.= $message."
"; } $request->setModuleName('default') ->setControllerName('user') - ->setActionName('logout'); + ->setActionName('logout') + ->setParam('message', $messageF); } else { $timeout = $auth->getIdentity()->timeout; Zend_Session::rememberMe($timeout);