ExternalAuthorizer.cs
method
public virtual AuthorizationResult Authorize(OpenAuthenticationParameters parameters)
old code
//code below is copied from CustomerController.Register method
//authenticate
if (isApproved)
_authenticationService.SignIn(userFound ?? userLoggedIn, false);
new code
//code below is copied from CustomerController.Register method
//authenticate
if (isApproved)
{
//migrate shopping cart
_shoppingCartService.MigrateShoppingCart(_workContext.CurrentCustomer, userFound ?? userLoggedIn, true);
_authenticationService.SignIn(userFound ?? userLoggedIn, false);
}
In CustomerController.Register method we have migrate shopping cart code.