public function ApiRequestAuthenticate($tokenAuth)
    {
        $this->beforeLoginCheckBruteForce();

        /** @var \Piwik\Auth $auth */
        $auth = StaticContainer::get('Piwik\Auth');
        $auth->setLogin($login = null);
        $auth->setTokenAuth($tokenAuth);
    }
public function ApiRequestAuthenticate($tokenAuth)
    {
        $this->beforeLoginCheckBruteForce();

        /** @var \Piwik\Auth $auth */
        $auth = StaticContainer::get('Piwik\Auth');
        $auth->setLogin($login = null);
        $auth->setTokenAuth($tokenAuth);
    }
public function ApiRequestAuthenticate ( $ tokenAuth ) { $ this -> beforeLoginCheckBruteForce ( ) ; /** @var \Piwik\Auth $auth */ $ auth = StaticContainer :: get ( 'Piwik\Auth' ) ; $ auth -> setLogin ( $ login = null ) ; $ auth -> setTokenAuth ( $ tokenAuth ) ; }
Set login name and authentication token for API request.
Listens to API.Request.authenticate hook.
Set login name and authentication token for API request . Listens to API . Request . authenticate hook .