application/modules/g/controllers/AuthController.php
protected function _respondToFaultyProcess(Garp_Auth_Adapter_Abstract $authAdapter) {
        if ($redirectUrl = $authAdapter->getRedirect()) {
            $this->_helper->redirector->gotoUrl($redirectUrl);
            return;
        }
        // Show the login page again.
        $request = clone $this->getRequest();
        $request->setActionName('login')
            ->setParam('errors', $authAdapter->getErrors())
            ->setParam('postData', $this->getRequest()->getPost());
        $this->_helper->actionStack($request);
        $this->_setViewSettings('login');
    }
protected function _respondToFaultyProcess(Garp_Auth_Adapter_Abstract $authAdapter) {
        if ($redirectUrl = $authAdapter->getRedirect()) {
            $this->_helper->redirector->gotoUrl($redirectUrl);
            return;
        }
        // Show the login page again.
        $request = clone $this->getRequest();
        $request->setActionName('login')
            ->setParam('errors', $authAdapter->getErrors())
            ->setParam('postData', $this->getRequest()->getPost());
        $this->_helper->actionStack($request);
        $this->_setViewSettings('login');
    }
protected function _respondToFaultyProcess ( Garp_Auth_Adapter_Abstract $ authAdapter ) { if ( $ redirectUrl = $ authAdapter -> getRedirect ( ) ) { $ this -> _helper -> redirector -> gotoUrl ( $ redirectUrl ) ; return ; } // Show the login page again. $ request = clone $ this -> getRequest ( ) ; $ request -> setActionName ( 'login' ) -> setParam ( 'errors' , $ authAdapter -> getErrors ( ) ) -> setParam ( 'postData' , $ this -> getRequest ( ) -> getPost ( ) ) ; $ this -> _helper -> actionStack ( $ request ) ; $ this -> _setViewSettings ( 'login' ) ; }
Auth adapters may return false if no user is logged in yet.
We then have a couple of options on how to respond. Showing the login page again
with errors would be the default, but some adapters require a redirect to an external site.

@param Garp_Auth_Adapter_Abstract $authAdapter
@return void
Auth adapters may return false if no user is logged in yet . We then have a couple of options on how to respond . Showing the login page again with errors would be the default but some adapters require a redirect to an external site .