skipping magento admin login authentication

Update the code in the file
app/code/core/Mage/Admin/Model/User.php
Find the below line in the authenticate($username, $password) function in this file.

if ($sensitive && $this->getId() && Mage::helper('core')->validateHash($password, $this->getPassword()))

Replace it with

if ($sensitive && $this->getId() || Mage::helper('core')->validateHash($password, $this->getPassword()))

The only change is the logic operator sign change from “&&” to “||”. With “||”, it ignores the password validation process, everything else stays the same. Try to login to the admin panel, and you should be able to login to Magento admin panel with any existing admin panel account without knowing the password.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search