Exemplo n.º 1
0
 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]);
 }
Exemplo n.º 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]);
 }
Exemplo n.º 3
0
 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]);
 }
Exemplo n.º 4
0
 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]);
 }