mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 10:42:16 +05:30
Поправлена ссылка на форму регистрации
This commit is contained in:
parent
36a5f7b359
commit
1fff80c7e8
@ -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()) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user