Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

How to Reset a Customer Password in Magento 2?

Vinh Jacker | 05-04-2021

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
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 3
Step 3

Step 4

Choose Customers Main File from the dropdown.

Step 4
Step 4

Step 5

Enter the email address for the customer you want to modify.

Step 5
Step 5

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
Step 6

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
Step 10
Step 10
Step 10

Step 11

Upload the local CSV that you edited.

Step 11
Step 11

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
Reset a password from the storefront
  • Step 1: Within the Login page, click on Forgot Your Password? button.
  • Step 2: Add the Email Address that is associated with your account and choose Reset 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.

x
    Jacker

    With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services