i know do it like this:

    public function dispatchLoopStartup(Zend_Controller_Request_Abstract
$request) {
    
        $auth = Zend_Auth::getInstance();

        if (!$auth->hasIdentity() && $request->getActionName() != 'login' &&
$request->getModuleName() == 'admin') {

            $translate = Zend_Registry::get('Translate');
            
            $flashMessenger = new
Zend_Controller_Action_Helper_FlashMessenger();
            $flashMessenger->setNamespace('authErrors');
            $flashMessenger->addMessage($translate->_('AUTH_NOIDENTITY'));
            
            $redirector = new Zend_Controller_Action_Helper_Redirector();
            $redirector    ->setExit(false)
                        ->gotoUrl('/admin/login/');
        
        }
    
    }
-- 
View this message in context: 
http://www.nabble.com/authentification-plugin-fails%2C-because-form-hash-is-not-in-session--tp23685261p23694805.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to