Skip to content

Commit

Permalink
GraphQL-55: [Mutations] My Account > Change account information
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Nayda committed Oct 8, 2018
1 parent 2057ddf commit 20e3393
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
}

0 comments on commit 20e3393

Please sign in to comment.