Commit be449e0677f86c25a3eb758561fc94ddd8952301
1 parent
923a6649
test privat for extrem
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
frontend/controllers/PrivatController.php
... | ... | @@ -75,7 +75,14 @@ |
75 | 75 | } |
76 | 76 | } |
77 | 77 | } |
78 | - | |
78 | + public function beforeAction($action) | |
79 | + { | |
80 | + if ($action->id == 'callback') { | |
81 | + $this->enableCsrfValidation = false; | |
82 | + } | |
83 | + | |
84 | + return parent::beforeAction($action); | |
85 | + } | |
79 | 86 | |
80 | 87 | public function actionCallback() |
81 | 88 | { |
... | ... | @@ -88,6 +95,7 @@ |
88 | 95 | fclose($myFile); |
89 | 96 | |
90 | 97 | print_r($data); |
98 | + die(); | |
91 | 99 | } else { |
92 | 100 | print_r(Url::to('/ru/order/callback', true)); |
93 | 101 | print_r(\Yii::$app->session->get('data')); | ... | ... |