/** * @inheritdoc */ public function actions() { //var_dump(\Yii::$app->request->getCookies()->getValue(\Yii::$app->request->csrfParam)); // var_dump(\Yii::$app->request->getBodyParam(\Yii::$app->request->csrfParam)); // die; return ['logout' => ['class' => LogoutAction::className()]]; }
/** * @inheritdoc */ public function actions() { return ['logout' => ['class' => LogoutAction::className()], 'client' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'onAuthSuccess'], 'successUrl' => Url::to(['/cms/user/profile']), 'cancelUrl' => Url::to(['/cms/user/profile'])]]; }
/** * @inheritdoc */ public function actions() { return ['error' => ['class' => 'yii\\web\\ErrorAction'], 'captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null], 'auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successAuthclientCallback']], 'logout' => ['class' => LogoutAction::className()]]; }
/** * @inheritdoc */ public function actions() { return ['logout' => ['class' => LogoutAction::className()]]; }