bug fixing
This commit is contained in:
parent
67b4fc4069
commit
0ca77b1395
@ -20,6 +20,7 @@ class RestController extends Controller
|
||||
{
|
||||
$behaviors = parent::behaviors();
|
||||
|
||||
$auth = $behaviors['authenticator'];
|
||||
unset($behaviors['authenticator']);
|
||||
|
||||
$behaviors['corsFilter'] = [
|
||||
@ -32,6 +33,7 @@ class RestController extends Controller
|
||||
]
|
||||
];
|
||||
|
||||
$behaviors['authenticator'] = $auth;
|
||||
$behaviors['authenticator'] = [
|
||||
'class' => JwtHttpBearerAuth::class,
|
||||
'auth' => [$this, 'auth'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user