Skip to content

Commit 09b43b0

Browse files
committed
Removed user login check after email verification and adjusted test assertions accordingly.
1 parent af38d4f commit 09b43b0

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

frontend/controllers/SiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function actionVerifyEmail($token)
227227
} catch (InvalidArgumentException $e) {
228228
throw new BadRequestHttpException($e->getMessage());
229229
}
230-
if (($user = $model->verifyEmail()) && Yii::$app->user->login($user)) {
230+
if ($model->verifyEmail()) {
231231
Yii::$app->session->setFlash('success', 'Your email has been confirmed!');
232232
return $this->goHome();
233233
}

frontend/tests/functional/VerifyEmailCest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,5 @@ public function checkSuccessVerification(FunctionalTester $I)
5757
$I->amOnRoute('site/verify-email', ['token' => '4ch0qbfhvWwkcuWqjN8SWRq72SOw1KYT_1548675330']);
5858
$I->canSee('Your email has been confirmed!');
5959
$I->canSee('Congratulations!', 'h1');
60-
$I->see('Logout (test.test)', 'form button[type=submit]');
61-
62-
$I->seeRecord('common\models\User', [
63-
'username' => 'test.test',
64-
'email' => 'test@mail.com',
65-
'status' => \common\models\User::STATUS_ACTIVE
66-
]);
6760
}
6861
}

0 commit comments

Comments
 (0)