Magento is one of made for E-commerce CMS that knows for its functionality, flexible code structure and performance. And it uses MySQL as storage backend to store and retrieve data in tabular format. Where it stores all useful information like customer data, order data, and configurations.
But many time it happens that your customer is unable to login in store frontend or they forget their reset details or store emails is not working in such case how to reset the password of your customer account? If you are a newbie it becomes more difficult for you to resolve your customer’s login issue. But if you are Magento expert, you can easily reset password and resume their login few tricks. So, we are back again with a small PHP script using which you can quickly reset the customer account password.
Simply create one “change_password.php” file in your Magento root using the following code. Don’t forget to specify customer id and password that you want to set inside the code.

That’s it. On successful execution of the script, your customer will able to login their account using the defined password. In such an emergency, resetting the password using PHP script becomes a life savior way for the developer.

Lastly, if you found this blog helpful, don’t forget to share it with your colleagues and Magento Friends and Let us know if you are facing any issue while implementing this code.

Happy Resetting!

Click to rate this post!
[Total: 12 Average: 4.8]