Skip to content

Commit 2e64d97

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-98832' into 2.3-develop-pr21
2 parents de47a2f + aba963e commit 2e64d97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ public function authenticate($username, $password)
565565
}
566566
try {
567567
$this->getAuthentication()->authenticate($customerId, $password);
568+
// phpcs:disable Magento2.Exceptions.ThrowCatch
568569
} catch (InvalidEmailOrPasswordException $e) {
569570
throw new InvalidEmailOrPasswordException(__('Invalid login or password.'));
570571
}
@@ -905,6 +906,7 @@ public function createAccountWithPasswordHash(CustomerInterface $customer, $hash
905906
throw new InputMismatchException(
906907
__('A customer with the same email address already exists in an associated website.')
907908
);
909+
// phpcs:disable Magento2.Exceptions.ThrowCatch
908910
} catch (LocalizedException $e) {
909911
throw $e;
910912
}
@@ -924,6 +926,7 @@ public function createAccountWithPasswordHash(CustomerInterface $customer, $hash
924926
}
925927
}
926928
$this->customerRegistry->remove($customer->getId());
929+
// phpcs:disable Magento2.Exceptions.ThrowCatch
927930
} catch (InputException $e) {
928931
$this->customerRepository->delete($customer);
929932
throw $e;
@@ -1026,6 +1029,7 @@ private function changePasswordForCustomer($customer, $currentPassword, $newPass
10261029
{
10271030
try {
10281031
$this->getAuthentication()->authenticate($customer->getId(), $currentPassword);
1032+
// phpcs:disable Magento2.Exceptions.ThrowCatch
10291033
} catch (InvalidEmailOrPasswordException $e) {
10301034
throw new InvalidEmailOrPasswordException(
10311035
__("The password doesn't match this account. Verify the password and try again.")

0 commit comments

Comments
 (0)