From 1fff80c7e856eb49be7fbc4ac26a59c5cb3e4ad1 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 24 Feb 2016 01:20:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D1=83=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controllers/SignupController.php | 6 +++--- tests/codeception/api/_pages/RegisterRoute.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/controllers/SignupController.php b/api/controllers/SignupController.php index 5c0cc8c..b7b5fcb 100644 --- a/api/controllers/SignupController.php +++ b/api/controllers/SignupController.php @@ -12,13 +12,13 @@ class SignupController extends Controller { public function behaviors() { return ArrayHelper::merge(parent::behaviors(), [ 'authenticator' => [ - 'except' => ['register', 'confirm'], + 'except' => ['index', 'confirm'], ], 'access' => [ 'class' => AccessControl::class, 'rules' => [ [ - 'actions' => ['register', 'confirm'], + 'actions' => ['index', 'confirm'], 'allow' => true, 'roles' => ['?'], ], @@ -34,7 +34,7 @@ class SignupController extends Controller { ]; } - public function actionRegister() { + public function actionIndex() { $model = new RegistrationForm(); $model->load(Yii::$app->request->post()); if (!$model->signup()) { diff --git a/tests/codeception/api/_pages/RegisterRoute.php b/tests/codeception/api/_pages/RegisterRoute.php index ec9cde7..89d166c 100644 --- a/tests/codeception/api/_pages/RegisterRoute.php +++ b/tests/codeception/api/_pages/RegisterRoute.php @@ -8,7 +8,7 @@ use yii\codeception\BasePage; */ class RegisterRoute extends BasePage { - public $route = ['signup/register']; + public $route = ['signup/index']; public function send(array $registrationData) { $this->actor->sendPOST($this->getUrl(), $registrationData);