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