We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bca5df commit c22b29dCopy full SHA for c22b29d
app/code/Magento/Customer/Controller/Account/Confirmation.php
@@ -99,10 +99,7 @@ public function execute()
99
);
100
$this->messageManager->addSuccessMessage(__('Please check your email for confirmation key.'));
101
return $this->getRedirect('*/*/index', ['_secure' => true]);
102
- } catch (InvalidTransitionException $e) {
103
- $this->messageManager->addSuccessMessage(__('This email does not require confirmation.'));
104
- return $this->getRedirect('*/*/index', ['_secure' => true]);
105
- } catch (NoSuchEntityException $e) {
+ } catch (InvalidTransitionException | NoSuchEntityException $e) {
106
$this->messageManager->addErrorMessage(__('Wrong email.'));
107
}
108
0 commit comments