From 56dbef433de191d2ef13058670a19de94d85d4ed Mon Sep 17 00:00:00 2001 From: iIronside Date: Mon, 26 Dec 2022 15:23:46 +0300 Subject: [PATCH] fix user login --- frontend/modules/api/controllers/UserController.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/modules/api/controllers/UserController.php b/frontend/modules/api/controllers/UserController.php index 8901ce3..a93b69b 100755 --- a/frontend/modules/api/controllers/UserController.php +++ b/frontend/modules/api/controllers/UserController.php @@ -42,21 +42,20 @@ class UserController extends ActiveController ]); } - public function actions(): array + public function actions() { $actions = parent::actions(); unset($actions['index']); unset($actions['create']); unset($actions['update']); unset($actions['delete']); - return $actions; } - protected function verbs(){ - return [ - 'login' => ['POST'] - ]; - } +// protected function verbs(){ +// return [ +// 'login' => ['POST'] +// ]; +// } public function actionLogin() {