How to login a user with an E-mail to magento2 site without triggering event customer_login
.
Actually, I am able to login with email using customer session but the customer session also triggers the customer_login
events.
I don't want to use a trigger.
$customer = $this->_customer->loadByEmail("[email protected]");
$this->_customerSession->setCustomerAsLoggedIn($customer);