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