public function actionSignup()
 {
     $model = new SignupForm();
     if ($model->load(Yii::$app->request->post())) {
         if ($user = $model->signup()) {
             Yii::$app->getSession()->setFlash('success', 'Подтвердите ваш электронный адрес.');
             return $this->goHome();
         }
     }
     return $this->render('signup', ['model' => $model]);
 }
Beispiel #2
0
 public function actionSignup()
 {
     $model = new SignupForm();
     if ($model->load(Yii::$app->request->post())) {
         if ($user = $model->signup()) {
             Yii::$app->getSession()->setFlash('success', Yii::t('app', 'FLASH_EMAIL_CONFIRM_REQUEST'));
             return $this->goHome();
         }
     }
     return $this->render('signup', ['model' => $model]);
 }
 public function actionSignup()
 {
     $model = new SignupForm();
     if ($model->load(Yii::$app->request->post())) {
         if ($user = $model->signup()) {
             Yii::$app->getSession()->setFlash('success', Module::t('module', 'FLASH_SUCCESS_REGISTRATION'));
             return $this->goHome();
         }
     }
     return $this->render('signup', ['model' => $model]);
 }
 public function actionSignup()
 {
     $model = new SignupForm();
     if ($model->load(Yii::$app->request->post())) {
         if ($user = $model->signup()) {
             if (Yii::$app->getUser()->login($user)) {
                 return $this->goHome();
             }
         }
     }
     return $this->render('signup', ['model' => $model]);
 }