Created
June 8, 2015 17:53
-
-
Save usmanismail/677dca291148c672e4dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'app/Mage.php'; | |
umask(0); | |
/* not Mage::run(); */ | |
Mage::app('default'); | |
## For magento1.7 or Earlier var | |
//$_HASH_SALT_LENGTH = 2; | |
## For magento1.8 and magento1.9 | |
$_HASH_SALT_LENGTH = 32; | |
#Generate admin password | |
$password = "admin1234"; | |
echo $adminPass = Mage::helper('core')->getHash($password, $_HASH_SALT_LENGTH); | |
## And reset password field in "admin_user" table | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment