File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments