public function connectByYahooId(Mage_Customer_Model_Customer $customer, $yahooId, $token) { $customer->setLeSocialloginYid($yahooId)->setLeSocialloginTtoken($token)->save(); Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer); }