Skip to content

Commit 90a2a74

Browse files
committed
Merge branch 'ACP2E-1521' of https://github.com/magento-l3/magento2ce into PR01262023
2 parents 68f18e4 + 700626a commit 90a2a74

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/code/Magento/Customer/Controller/Account/ForgotPasswordPost.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function execute()
9393
);
9494
return $resultRedirect->setPath('*/*/forgotpassword');
9595
}
96+
$this->session->destroy(['send_expire_cookie']);
9697
$this->messageManager->addSuccessMessage($this->getSuccessMessage($email));
9798
return $resultRedirect->setPath('*/*/');
9899
} else {

app/code/Magento/Customer/Test/Unit/Controller/Account/ForgotPasswordPostTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public function testExecute()
147147
->with('*/*/')
148148
->willReturnSelf();
149149

150+
$this->session->expects($this->once())->method('destroy')->with(['send_expire_cookie']);
151+
150152
$this->controller->execute();
151153
}
152154

0 commit comments

Comments
 (0)