With a big catalog of 224+ extensions for your online store
How to Reset a Customer Password in Magento 2?
While Magento 1 allows users to update a customer password to a particular string, this feature in Magento 2 has been eliminated. If you go to the admin panel and reset customer passwords, then Magento will require the users to generate a new password by accessing the link sent in their email.
While this is safer and more convenient, a problem can arise if your customer wants a particular password, or can’t get emails. In this guide, we’ll help you to reset a customer password in a Magento store.
This might be useful for developers if they are working on a project or development site.
How to reset a password in Magento 2 for one customer
Step 1
Log into your Magento 2 admin panel.
Step 2
![Step 2](https://i.imgur.com/anVoxZ4.jpg)
Go to the customer you want to change and copy their email address.
Step 3
Then, go to System > Data Transfer > Export
.
![Step 3](https://i.imgur.com/aFq7MjQ.jpg)
Step 4
Choose Customers Main File
from the dropdown.
![Step 4](https://i.imgur.com/Z6Si333.jpg)
Step 5
Enter the email address for the customer you want to modify.
![Step 5](https://i.imgur.com/6n1OAeu.jpg)
Step 6
Go to the bottom of the page and click on the Continue button. A file will be downloaded to your browser.
![Step 6](https://i.imgur.com/jCBMXEL.jpg)
Step 7
Look for the location of your downloaded file and open it. It is a CSV (comma-separated values file. You can use OpenOffice
or Google Sheets
to open this file.
Step 8
Navigate to the right and enter the Password
column with the password of your customer.
Step 9
Save your CSV file and turn back to the Magento admin panel. Go to System > Data Transfer > Import
.
Step 10
Select Customers and Addresses (single file)
from the Import Settings section and choose Add/Update Complex Data
in the Import Behavior section.
![Step 10](https://i.imgur.com/dqpw6aO.jpg)
![Step 10](https://i.imgur.com/b5V9diK.jpg)
Step 11
Upload the local CSV that you edited.
![Step 11](https://i.imgur.com/qpzLbAc.jpg)
Now you’ve reset the password for your customers!
How to reset passwords in Magento 2 for many customers at once
Reset a password from the storefront
![Reset a password from the storefront](https://i.imgur.com/BC5weO8.jpg)
- Step 1: Within the
Login
page, click onForgot Your Password?
button. - Step 2: Add the
Email Address
that is associated with your account and chooseReset My Password
.
If the email address matches the one that is attached to your account, you’ll get a Password Reset Confirmation
with a link to reset your password.
- Step 3: When you receive the email, click on the reset password link and create your New Password.
- Step 4: Re-type the password and click on Reset Password.
As you get confirmation that the password is ready, you can enter the new password to log into your account. Reset a password from the Admin
- Step 1: On the Admin sidebar, navigate to
Customers > All Customers
. - Step 2: Look for the customer account in the grid and choose Edit in the
Action
column. - Step 3: In the list of options on the top of the page, click on
Reset Password
.
The admin can set the number of password reset requests that are enabled within 60 minutes.
Reset Customer Password From Database
Another way to reset customer password in Magento 2 is from the database. To do so, run this command:
`UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxENTERCUSTOMERPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
It’s a straightforward process, right? Additionally, you have the option to allow customers to log in without a password in your Magento 2 store by enabling login using only their Email ID.
Conclusion
Follow the instructions carefully, and then you can know how to reset the Magento 2 customer password. Enter any of your questions or concerns in the comment section. We’ll answer you as fast as possible.
We’re pleased to hear from you.
As a store owner, if you want to manage your customer quantity efficiently, you might consider using Customer Approval for Magento 2.
![Image Description](https://cdn2.mageplaza.com/media/general2/FwmEefy.jpg)
Looking for
Customization & Development Services?
8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.
Get free consultantRecent Tutorials
![Change Store Email Addresses](https://cdn.mageplaza.com/media/general/xXoYMso.jpg)
Change Store Email Addresses
![Fix Magento 2 'Invalid Form Key. Please refresh the page'](https://i.imgur.com/CQHGpZA.png)
Fix Magento 2 'Invalid Form Key. Please refresh the page'
![Magento 2 Search Settings: Default Magento vs Mageplaza AJAX Search](https://i.imgur.com/w58m6Sw.jpg)
Magento 2 Search Settings: Default Magento vs Mageplaza AJAX Search
Explore Our Products:
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!