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

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() {
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()) {

View File

@ -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);