Skip to content

Instantly share code, notes, and snippets.

@gelanivishal
Last active February 21, 2017 01:38
Show Gist options
  • Save gelanivishal/7abf01f999bc1fbbea6a38edc7c5bb26 to your computer and use it in GitHub Desktop.
Save gelanivishal/7abf01f999bc1fbbea6a38edc7c5bb26 to your computer and use it in GitHub Desktop.
Reset Admin Password + Magento

To login into magento admin, using only ftp access is a little tricky. Through FTP open the class Mage_Admin_Model_User located at

app\code\core\Mage\Admin\Model\User.php

Next find the

$this->loadByUsername($username);

You need to add the line return true; after this i.e

$this->loadByUsername($username);
return true;

And that’s it, now you login in admin using any password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment