*/ class Mage_Adminhtml_Helper_Rss extends Mage_Core_Helper_Abstract { public function authAdmin($path) { $session = Mage::getSingleton('rss/session'); if ($session->isAdminLoggedIn()) { return; } list($username, $password) = Mage::helper('core/http')->authValidate(); $adminSession = Mage::getModel('admin/session'); $user = $adminSession->login($username, $password); //$user = Mage::getModel('admin/user')->login($username, $password); if($user && $user->getId() && $user->getIsActive() == '1' && $adminSession->isAllowed($path)){ $session->setAdmin($user); } else { Mage::helper('core/http')->authFailed(); } } }