@@ -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