throw CustomerException::
customerAuthThrottledException($exception->
getWaitTime(),
$exception);
} } try { $customer =
$this->accountService->
getCustomerByLogin( $email,
$data->
get('password'
),
$context );
} catch (CustomerNotFoundException|BadCredentialsException
$exception) { throw new UnauthorizedHttpException('json',
$exception->
getMessage());
} catch (CustomerOptinNotCompletedException
$exception) { if (!Feature::
isActive('v6.6.0.0'
)) { throw CustomerException::
inactiveCustomer($exception->
getParameters()['customerId'
]);
} throw $exception;
} if (isset($cacheKey)) { $this->rateLimiter->
reset(RateLimiter::LOGIN_ROUTE,
$cacheKey);
}