For logout we use
Shopware()->Modules()->Admin()->logout();
And I know that I can use the Shopware()->Modules()->Admin()->sLogin(true); from the
private function loginCustomer(Customer $customer): void
{
$this->front->Request()->setPost(‘email’, $customer->getEmail());
$this->front->Request()->setPost(‘passwordMD5’, $customer->getPassword());
Shopware()->Modules()->Admin()->sLogin(true);
}
I want to know if I can use this or some other method for login of the customer after I logout the customer and don’t keep his password.
Is it possible to achieve this with having only the customer id?