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
Go to the customer you want to change and copy their email address.
Step 3
Then, go to System > Data Transfer > Export
.
Step 4
Choose Customers Main File
from the dropdown.
Step 5
Enter the email address for the customer you want to modify.
Step 6
Go to the bottom of the page and click on the Continue button. A file will be downloaded to your browser.
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 11
Upload the local CSV that you edited.
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
- 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.
Looking for Magento Development Company?
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
How to insert Order Attributes to Transactional Emails
How to insert Order Attributes to Transactional Emails
How to add Order Attributes to PDF Order Template
Explore Our Products:
Stay in the know
Get special offers on the latest news from Mageplaza.
Earn $10 in reward now!