From 20e33937055d3d288384108ac88e2deb3f742a2a Mon Sep 17 00:00:00 2001 From: Valeriy Nayda Date: Mon, 8 Oct 2018 19:47:28 +0300 Subject: [PATCH] GraphQL-55: [Mutations] My Account > Change account information --- .../CustomerGraphQl/Model/Resolver/GenerateCustomerToken.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/Model/Resolver/GenerateCustomerToken.php b/app/code/Magento/CustomerGraphQl/Model/Resolver/GenerateCustomerToken.php index 0405d63e49b81..9719d048f606b 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Resolver/GenerateCustomerToken.php +++ b/app/code/Magento/CustomerGraphQl/Model/Resolver/GenerateCustomerToken.php @@ -9,7 +9,7 @@ use Magento\Framework\Exception\AuthenticationException; use Magento\Framework\GraphQl\Config\Element\Field; -use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException; +use Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException; use Magento\Framework\GraphQl\Exception\GraphQlInputException; use Magento\Framework\GraphQl\Query\ResolverInterface; use Magento\Framework\GraphQl\Schema\Type\ResolveInfo; @@ -56,7 +56,7 @@ public function resolve( $token = $this->customerTokenService->createCustomerAccessToken($args['email'], $args['password']); return ['token' => $token]; } catch (AuthenticationException $e) { - throw new GraphQlAuthorizationException(__($e->getMessage()), $e); + throw new GraphQlAuthenticationException(__($e->getMessage()), $e); } } }