Skip to content

Commit 1419752

Browse files
committed
minor fix
1 parent e567000 commit 1419752

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/RequestPasswordResetEmail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function resolve(
101101
}
102102

103103
if (true === $this->authentication->isLocked($customer->getId())) {
104-
throw new GraphQlInputException(__("The current customer isn't authorized"));
104+
throw new GraphQlInputException(__('The account is locked'));
105105
}
106106

107107
try {
@@ -110,7 +110,7 @@ public function resolve(
110110
AccountManagement::EMAIL_RESET
111111
);
112112
} catch (LocalizedException $e) {
113-
throw new GraphQlInputException(__("Cannot reset customer password"), $e);
113+
throw new GraphQlInputException(__('Cannot reset customer password'), $e);
114114
}
115115
}
116116
}

app/code/Magento/CustomerGraphQl/Model/Resolver/ResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function resolve(
108108
}
109109

110110
if (true === $this->authentication->isLocked($customer->getId())) {
111-
throw new GraphQlInputException(__("The current customer isn't authorized"));
111+
throw new GraphQlInputException(__('The account is locked'));
112112
}
113113

114114
try {

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/RequestPasswordResetEmailTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testEmailAvailableInvalidValue()
9595
* @magentoApiDataFixture Magento/Customer/_files/customer.php
9696
*
9797
* @expectedException \Exception
98-
* @expectedExceptionMessage The current customer isn't authorized
98+
* @expectedExceptionMessage The account is locked
9999
*/
100100
public function testRequestPasswordResetEmailForLockCustomer()
101101
{

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/ResetPasswordTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function testNewPasswordEmptyValue()
203203
* @magentoApiDataFixture Magento/Customer/_files/customer.php
204204
*
205205
* @expectedException \Exception
206-
* @expectedExceptionMessage The current customer isn't authorized
206+
* @expectedExceptionMessage The account is locked
207207
*
208208
* @throws LocalizedException
209209
* @throws NoSuchEntityException

0 commit comments

Comments
 (0)