Skip to content

Instantly share code, notes, and snippets.

@yireo
Last active October 13, 2015 12:18
Show Gist options
  • Save yireo/4194595 to your computer and use it in GitHub Desktop.
Save yireo/4194595 to your computer and use it in GitHub Desktop.
Script to reset customer password
<?php
require_once 'app/Mage.php';
Mage::app();
$password = 'password01';
$customerId = 1;
$customer = Mage::getModel('customer/customer')->load($customerId);
$customer->setPassword($password);
$customer->setConfirmation($password);
$customer->validate();
$customer->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment