January 06, 2014

Magento Admin Access Alternate way :: Admin Password Encryption - Decryption

Hello Everyone,

Here the tip for magento admin access.
Go to "app/code/core/Mage/Admin/Model/User.php"

Now, Comes to authenticate method around 325 line no.
You will find this code in this method.
Just comment on it.

/*if ($sensitive && $this->getId() && Mage::helper('core')->validateHash($password, $this->getPassword())) {
                if ($this->getIsActive() != '1') {
                    Mage::throwException(Mage::helper('adminhtml')->__('This account is inactive.'));
                }
                if (!$this->hasAssigned2Role($this->getId())) {
                    Mage::throwException(Mage::helper('adminhtml')->__('Access denied.'));
                }
                $result = true;
           }*/
....................................................................................................

After comment on said condition,

Just write following code before Mage::dispatchEvent('admin_user_authenticate_after', array(); 

$result = true; 
Mage::dispatchEvent('admin_user_authenticate_after', array();

You have access for admin just entering valid username.

Enjoying.

Cheers :)




No comments:

Post a Comment

Thank you very much for your comment.
Your message has been successfully sent out to author of this blog.