REQUEST CUSTOM WORK SERVICE TO MAKE PERFECT CHANGES
Our Feature Items: SM Market // SM AutoStore // SP Revo
Shopping cart (0)

How To Reset Admin Password In Magento 2

Rate this item
(0 votes)
Written by  Hoant
Wednesday, 06 July 2022 17:06

If you want to get into the Magento admin, you must provide your User Name and Password. And forgetting one of them is a major hassle. When a user clicks the "Forgot your password" link on Magento 2, a temporary password is immediately sent to the email address connected to the account. This guide will be useful if the admin account is locked or if you can't remember your Magento 2 Admin password.


Let's take the next actions to change your Magento 2 admin password.


You remember your current Admin password

Step 1: Navigate to System > Permissions > All Users in your Magento backend
Step 2: This page displays a list of all users (including administrators) who are currently logged into your Magento backend. Click on the appropriate user to change that person's password.
Step 3: You'll see options to modify your current password in the panel that follows, as shown below:

reset-account-magento-2-theme

You don’t remember your current password

If you don’t recall your Magento 2 Admin password, don’t worry. By using the following 3 methods, you can still acquire a new password in a matter of seconds.

1. Make use of the "Reset password" feature.

Step 1: Go to Admin Panel >> Click Forgot Your Passwords

reset-account-magento-2-theme

Step 2: Type your email address into the box provided and select Retrieve password.
Step 3: Open the password reset link in your inbox. After providing a new password, click Reset.

2. Use Magento CLI to create a new user

You can create a new admin user with the following command, and then use the new admin account to change the password of your original user since Magento CLI does not support changing admin passwords with a command. Run the following command:
php bin/magento admin:user:create --admin-user='admin' --admin-password='Admin123'
--admin-email='admin@admin.com' --admin-firstname='firstname' --admin-lastname='lastname'
  • admin: The username for the new admin account you'll be setting up
  • Admin123: The password for the new admin account you'll be setting up
  • admin@admin.com : The email of the new admin account that you'll be creating
  • firstname: replace it with your first name
  • lastname: replace it with your last name
  • After making a new admin account, you can use this account to login admin panel

    3. Change password from MySQL Manager or phpMyAdmin

    Step1: Go to MySQL Manager or phpMyAdmin, go to the Magento 2 website database, and find the admin_user table.

    reset-account-magento-2-theme


    Step2: Paste the following query:
    UPDATE admin_user SET password = SHA2('$PASSWORD', 256) WHERE username='$USERNAME';
    Replace $PASSWORD with your new admin password, $USERNAME with the username you want to change the password for.

    Hope this information is useful to you!
    Thanks for reading!
    Google+
    Joomla TemplatesFree Joomla TemplatesVirtuemart TemplatesK2 TemplatesJoomShopping TemplatesHikaShop TemplatesSobiPro TemplatesOpenCart Themes
    Quà Tết Cao Cấp Hộp quà tết Giỏ quà tết Túi quà tết