From f2e6df4022a0f18198ffbc14c5a96d0355138114 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 12 Dec 2016 00:07:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=20=D0=B4=D0=BB=D1=8F=20OAuth=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=86=D0=B5=D1=81=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controllers/OauthController.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/controllers/OauthController.php b/api/controllers/OauthController.php index 5c19972..8df62a0 100644 --- a/api/controllers/OauthController.php +++ b/api/controllers/OauthController.php @@ -17,16 +17,12 @@ class OauthController extends Controller { public function behaviors() { return ArrayHelper::merge(parent::behaviors(), [ 'authenticator' => [ - 'except' => ['validate', 'token'], + 'only' => ['complete'], ], 'access' => [ 'class' => AccessControl::class, + 'only' => ['complete'], 'rules' => [ - [ - 'actions' => ['validate', 'token'], - 'allow' => true, - 'roles' => ['?'], - ], [ 'class' => ActiveUserRule::class, 'actions' => ['complete'],