public function actionReset() { $dbh = Db::getConnection(); $config = new PHPAuth\Config($dbh); $auth = new PHPAuth\Auth($dbh, $config, $language = "ru_RU"); $result = false; if (isset($_POST['submit'])) { $key = $_POST['key']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; $result = $auth->resetPass($key, $password, $confirm_password); } return $this->render('user/reset', ['title' => 'Сброс пароля', 'result' => $result]); }