// Update the sales channel context for CacheResponseSubscriber
$request->attributes->
set(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_CONTEXT_OBJECT,
$newContext);
if (!
empty($token)) { $this->
addCartErrors($cartBeforeNewContext);
return $this->
createActionResponse($request);
} } catch (BadCredentialsException|UnauthorizedHttpException|CustomerOptinNotCompletedException|CustomerAuthThrottledException
$e) { if ($e instanceof CustomerOptinNotCompletedException
) { $errorSnippet =
$e->
getSnippetKey();
} if ($e instanceof CustomerAuthThrottledException
) { $waitTime =
$e->
getWaitTime();
} } $data->
set('password', null
);
return $this->
forwardToRoute( 'frontend.account.login.page',
[