We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.1
v6.5rc1
When doing a xhr request to log in a customer using:
$context = $this->restorer->restoreByCustomer($customer->getId(), $this->salesChannelContext->getContext()); $this->eventDispatcher->dispatch( new CustomerLoginEvent($context, $customer, $context->getToken()) );
after the customer is logged in, you refresh the page and the customer is logged in, $salesChannelContext->getCustomer() is not null
$salesChannelContext->getCustomer()
Customer is not logged in, $salesChannelContext->getCustomer() is null
Create a route that returns json, execute the code above in that route, go back to front page, check the user menu for a successful login
The content you are editing has changed. Please copy your edits and refresh the page.
The text was updated successfully, but these errors were encountered:
We found the following existing issues which may help or are related to your topic:
Sorry, something went wrong.
No branches or pull requests
PHP Version
8.1
Shopware Version
v6.5rc1
Expected behaviour
When doing a xhr request to log in a customer using:
after the customer is logged in, you refresh the page and the customer is logged in,
$salesChannelContext->getCustomer()
is not nullActual behaviour
Customer is not logged in,
$salesChannelContext->getCustomer()
is nullHow to reproduce
Create a route that returns json, execute the code above in that route, go back to front page, check the user menu for a successful login
Tasks
The text was updated successfully, but these errors were encountered: