For some reason X or Y, the Magento 2 Admin password reset process may not work. In this case, you have many other possibilities that you can try. In today's article, we are going to discuss four different approaches to reset a Magento 2 Admins password. Whether you are a developer or a store, you don't have to stay out of your Magento dashboard. At the end of the article, you will understand how to use the standard procedure (email reset link) or database reset.
There are many scenarios in which the current article can be useful. Here are a few :
Either way, you can try one of the suggestions below to get to your dashboard.
You may have more than four approaches, but trying one of the suggestions below may help.
If your Magento 2 website has more than one admin, you can use the other admin password to reset your password. In this case, you can ask the second administrator to log in and help you with the procedure. Here are the steps to follow:
Another way to reset a Magento 2 admin password is to go to the admin login page. In this case, you can follow the steps below.
Remarks :
'backend' => array ( 'frontName' => 'adminccldd', ),
If "adminccldd" is your dashboard bar, then you will have something like "https://yourURL.com/adminccldd".
If you can't get the reset link in your email or if you don't have more than two admins on your site, you can do it directly from your database. Here's how.
The key looks like this:
'crypt' => array ( 'key' => 'd10075ee37ff3f6dddssdlldac352773a029', ),
UPDATE prefix_admin_user SET password = CONCAT(SHA2('keyNewPassword', 256), ':key:1') WHERE username = 'myusername';
UPDATE mag2_admin_user SET password = CONCAT(SHA2('d10075ee37ff3f6dddssdlldac352773a029NewPassword', 256), ':d10075ee37ff3f6dddssdlldac352773a029:1') WHERE username = 'myusername';
In most cases, the above three methods would work. It may happen that you do not have a second administrator, the mail system does not work and you do not have access to PhpMyAdmin. If so, the command line will help you. In this case, the approach will be to create a new admin login that you can use to access the dashboard. Once you are in your dashboard, you can either reset your password or delete the previous user. Here are the steps you need to follow:
You will have something like this:
admin admin:user:create Creates an administrator admin:user:unlock Unlock Admin Account
then type
php bin/magento admin:user:create
It will ask you to provide username, password, email address, first and last name. After providing all this information, clear the cache.
php bin/magento cache:flush
If you follow all the steps, you will be able to log into your Magento 2 dashboard as an administrator.
The procedure for resetting a Magento 2 Admins password is not always easy. However, if you can use one of the suggested methods, you can try another. Thanks for taking the time to read our article, if you like the article, you may also be interested in "6 Different Approaches to Reset WordPress Password" . Contact us if you have any questions. Message us to get your free quote for any Magento development or website development service.
We are the experts in creating websites, online stores and functionalities for websites based in Montreal. Contact us today to create your website starting at $1,200.
npgilblas