We use the Inchoo_LoginAsCustomer to login under a certain user account from the backend. This extension always redirects it back to the login page without logging the user in. I've found where it goes wrong and fixed it by changing line 104 in Model/Observer.php from;
if ($oB2BCustomerHelper->isLoginRequired() == true && !$oB2BCustomerHelper->isCustomerLoggedIn()) {
to;
if ($oB2BCustomerHelper->isLoginRequired() == true && !$oB2BCustomerHelper->isCustomerLoggedIn() && !($oControllerAction instanceof Inchoo_LoginAsCustomer_CustomerController)) {
We use the Inchoo_LoginAsCustomer to login under a certain user account from the backend. This extension always redirects it back to the login page without logging the user in. I've found where it goes wrong and fixed it by changing line 104 in Model/Observer.php from;
to;