private function authenticate($login, $tokenAuth, $authCode = null) { $this->auth->setLogin($login); $this->auth->setTokenAuth($tokenAuth); if ($authCode) { $this->auth->setAuthCode($authCode); $this->getValidAuthCode(); } return $this->auth->authenticate(); }