Skip to content

Commit 9b3ecfe

Browse files
committed
fix error message
1 parent 91ebb8a commit 9b3ecfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL/Mutations/BaseAuthResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function makeRequest(array $credentials)
4242
$response = app()->handle($request);
4343
$decodedResponse = json_decode($response->getContent(), true);
4444
if ($response->getStatusCode() != 200) {
45-
throw new AuthenticationException($decodedResponse['error'], $decodedResponse['message'], _('Incorrect username and password'));
45+
throw new AuthenticationException(_('Incorrect username and password'), $decodedResponse['message'], _('Incorrect username or password'));
4646
}
4747

4848
return $decodedResponse;

0 commit comments

Comments
 (0)