diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 6de678a1e..e00739f93 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -227,7 +227,7 @@ public function actionVerifyEmail($token) } catch (InvalidArgumentException $e) { throw new BadRequestHttpException($e->getMessage()); } - if (($user = $model->verifyEmail()) && Yii::$app->user->login($user)) { + if (($user = $model->verifyEmail())) { Yii::$app->session->setFlash('success', 'Your email has been confirmed!'); return $this->goHome(); }