Все контроллеры переведены на использование jwt токенов

This commit is contained in:
ErickSkrauch
2016-02-24 01:15:04 +03:00
parent 601f0a290b
commit 8583edbb92
5 changed files with 26 additions and 3 deletions

View File

@ -4,11 +4,15 @@ namespace api\controllers;
use api\models\LoginForm;
use Yii;
use yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
class AuthenticationController extends Controller {
public function behaviors() {
return array_merge(parent::behaviors(), [
return ArrayHelper::merge(parent::behaviors(), [
'authenticator' => [
'except' => ['login'],
],
'access' => [
'class' => AccessControl::class,
'rules' => [