Skip to content

Commit

Permalink
Add reason for not logging exception; correct invalid user error message
Browse files Browse the repository at this point in the history
closes magento#2066; further details on issue page
  • Loading branch information
David Alger committed Nov 4, 2015
1 parent 2fc9834 commit 4c58ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Customer/Controller/Account/LoginPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public function executeInternal()
} catch (EmailNotConfirmedException $e) {
$value = $this->customerUrl->getEmailConfirmationUrl($login['username']);
$message = __(
'This account is not confirmed.' .
' <a href="%1">Click here</a> to resend confirmation email.',
'This account is not confirmed. <a href="%1">Click here</a> to resend confirmation email.',
$value
);
$this->messageManager->addError($message);
Expand All @@ -97,7 +96,8 @@ public function executeInternal()
$this->messageManager->addError($message);
$this->session->setUsername($login['username']);
} catch (\Exception $e) {
$this->messageManager->addError(__('Invalid login or password.'));
// PA DSS violation: throwing or logging an exception here can disclose customer password
$this->messageManager->addError(__('Unspecified error occured. Please contact us for assistence!'));
}
} else {
$this->messageManager->addError(__('A login and a password are required.'));
Expand Down

0 comments on commit 4c58ee1

Please sign in to comment.