Поправлена ссылка на форму регистрации

This commit is contained in:
ErickSkrauch 2016-02-24 01:20:10 +03:00
parent 36a5f7b359
commit 1fff80c7e8
2 changed files with 4 additions and 4 deletions

View File

@ -12,13 +12,13 @@ class SignupController extends Controller {
public function behaviors() { public function behaviors() {
return ArrayHelper::merge(parent::behaviors(), [ return ArrayHelper::merge(parent::behaviors(), [
'authenticator' => [ 'authenticator' => [
'except' => ['register', 'confirm'], 'except' => ['index', 'confirm'],
], ],
'access' => [ 'access' => [
'class' => AccessControl::class, 'class' => AccessControl::class,
'rules' => [ 'rules' => [
[ [
'actions' => ['register', 'confirm'], 'actions' => ['index', 'confirm'],
'allow' => true, 'allow' => true,
'roles' => ['?'], 'roles' => ['?'],
], ],
@ -34,7 +34,7 @@ class SignupController extends Controller {
]; ];
} }
public function actionRegister() { public function actionIndex() {
$model = new RegistrationForm(); $model = new RegistrationForm();
$model->load(Yii::$app->request->post()); $model->load(Yii::$app->request->post());
if (!$model->signup()) { if (!$model->signup()) {

View File

@ -8,7 +8,7 @@ use yii\codeception\BasePage;
*/ */
class RegisterRoute extends BasePage { class RegisterRoute extends BasePage {
public $route = ['signup/register']; public $route = ['signup/index'];
public function send(array $registrationData) { public function send(array $registrationData) {
$this->actor->sendPOST($this->getUrl(), $registrationData); $this->actor->sendPOST($this->getUrl(), $registrationData);