public function noAccess(Exception $exception)
    {
        $frontController = FrontController::getInstance();

        if (Common::isXmlHttpRequest()) {
            echo $frontController->dispatch(Piwik::getLoginPluginName(), 'ajaxNoAccess', array($exception->getMessage()));
            return;
        }

        echo $frontController->dispatch(Piwik::getLoginPluginName(), 'login', array($exception->getMessage()));
    }
public function noAccess(Exception $exception)
    {
        $frontController = FrontController::getInstance();

        if (Common::isXmlHttpRequest()) {
            echo $frontController->dispatch(Piwik::getLoginPluginName(), 'ajaxNoAccess', array($exception->getMessage()));
            return;
        }

        echo $frontController->dispatch(Piwik::getLoginPluginName(), 'login', array($exception->getMessage()));
    }
public function noAccess ( Exception $ exception ) { $ frontController = FrontController :: getInstance ( ) ; if ( Common :: isXmlHttpRequest ( ) ) { echo $ frontController -> dispatch ( Piwik :: getLoginPluginName ( ) , 'ajaxNoAccess' , array ( $ exception -> getMessage ( ) ) ) ; return ; } echo $ frontController -> dispatch ( Piwik :: getLoginPluginName ( ) , 'login' , array ( $ exception -> getMessage ( ) ) ) ; }
Redirects to Login form with error message.
Listens to User.isNotAuthorized hook.
Redirects to Login form with error message . Listens to User . isNotAuthorized hook .