From 0ca77b139556bd7072eb141eb78d4de65fe67b5a Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 28 Sep 2021 19:41:22 +0200 Subject: [PATCH] bug fixing --- customerapi/controllers/RestController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/customerapi/controllers/RestController.php b/customerapi/controllers/RestController.php index bdc4997..0340189 100644 --- a/customerapi/controllers/RestController.php +++ b/customerapi/controllers/RestController.php @@ -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'],