Skip to content

Commit 20e3393

Browse files
author
Valeriy Nayda
committed
GraphQL-55: [Mutations] My Account > Change account information
1 parent 2057ddf commit 20e3393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use Magento\Framework\Exception\AuthenticationException;
1111
use Magento\Framework\GraphQl\Config\Element\Field;
12-
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
12+
use Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException;
1313
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
1414
use Magento\Framework\GraphQl\Query\ResolverInterface;
1515
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
@@ -56,7 +56,7 @@ public function resolve(
5656
$token = $this->customerTokenService->createCustomerAccessToken($args['email'], $args['password']);
5757
return ['token' => $token];
5858
} catch (AuthenticationException $e) {
59-
throw new GraphQlAuthorizationException(__($e->getMessage()), $e);
59+
throw new GraphQlAuthenticationException(__($e->getMessage()), $e);
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)