Проблема: После регистрации function actionReg происходит авто вход actionLogin. Но в обоих функциях капча прописана изза этого автовход не работает. Как исправить? Как пропустить проверку капчи авторизации после регистрации страница авторизации PHP: public function actionLogin() { $view = $this->getView('login.php'); $this->carcase->import('content', $view); $socialAuthConfig = new Config('social-auth'); $view->socialAuthInfo = $socialAuthConfig; if (Tools::rGET('back')) $view->back = Tools::rGET('back'); $view->error = ''; //if (Tools::rPOST('username') && Tools::rPOST('pass') && (!empty(Tools::rPOST('g-recaptcha-response')))) { if (Tools::rPOST('username') && Tools::rPOST('pass') ) { //////////////////////// капча начало if (empty($out->success)) { $error = true; $secret = '6LfYdaYcAAAAAB9LtR7ZlDlYQL9oebQ-UtfNIsJm';////////////////////////капча $curl = curl_init('https://www.google.com/recaptcha/api/siteverify'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, 'secret=' . $secret . '&response=' . Tools::rPOST('g-recaptcha-response')); $out = curl_exec($curl); curl_close($curl); $out = json_decode($out); } ////////////////////////капча почти конец $user = new Client(); $row = $user->where('username', Tools::rPOST('username'))->getRow(); if ($row && $row->password == Tools::passCrypt(Tools::rPOST('pass'))&& ($out->success == true)) { ////капча Страница регистрации PHP: public function actionReg() { $view = $this->getView('reg.php'); $this->carcase->import('content', $view); $socialAuthConfig = new Config('social-auth'); $view->socialAuthInfo = $socialAuthConfig; $view->error = ''; if (Router::getParam('id_ref')) { setcookie('ref', Router::getParam('id_ref'), time() + 600000, '/'); } if (Tools::rPOST()) { // $recaptcha_verifed = true; // if ($this->config->enabled_captcha) { $secret = '6LfYdaYcAAAAAB9LtR7ZlDlYQL9oebQ-UtfNIsJm';////////////////////////капча // $recaptcha_verifed = false; $curl = curl_init('https://www.google.com/recaptcha/api/siteverify'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, 'secret=' . $secret . '&response=' . Tools::rPOST('g-recaptcha-response')); $out = curl_exec($curl); curl_close($curl); $out = json_decode($out); .... if ($user->save()) { Notifier::NewRegistration($user, Tools::rPOST('pass')); $this->actionLogin(); }