From be449e0677f86c25a3eb758561fc94ddd8952301 Mon Sep 17 00:00:00 2001 From: stes Date: Wed, 17 Jan 2018 12:22:00 +0200 Subject: [PATCH] test privat for extrem --- frontend/controllers/PrivatController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/controllers/PrivatController.php b/frontend/controllers/PrivatController.php index 0015ec4..6a4e7d9 100644 --- a/frontend/controllers/PrivatController.php +++ b/frontend/controllers/PrivatController.php @@ -75,7 +75,14 @@ } } } - + public function beforeAction($action) + { + if ($action->id == 'callback') { + $this->enableCsrfValidation = false; + } + + return parent::beforeAction($action); + } public function actionCallback() { @@ -88,6 +95,7 @@ fclose($myFile); print_r($data); + die(); } else { print_r(Url::to('/ru/order/callback', true)); print_r(\Yii::$app->session->get('data')); -- libgit2 0.21.4