Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $id = 1;//admin user id
- $user = Mage::getModel('admin/user')->load($id);
- $pass = substr(md5(uniqid(rand(), true)), 0, 7);
- $user->setPassword($pass);
- $user->save();
- echo "new password $pass";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement