How to Unlock Admin User in Magento 2
Ever got locked out of your Magento 2 admin panel?
Have you ever got this error message while logging in that says:
You did not sign in correctly or your account is temporarily disabled.
It looks something like shown in the below image:
Not allowing to log in to the admin panel after several attempts is frustrating. Especially, when you are in a hurry to implement something or complete your administrative tasks.
Magento admin panel shows this kind of error message because of numerous reasons. Some of those are:
- Attempting the wrong user name or password more than one time.
- Admin panel gets locked because of trying failure request
Don’t bother, just implement the solution to unlock admin user in Magento 2.
Solution to Unlock Admin User in Magento 2:
Use the below command in the command line of your store.
1 |
php bin/magento admin:user:unlock [username] |
e.g:
1 |
php bin/magento admin:user:unlock meetanshi |
Here, “meetanshi” is a username.
Simple! isn’t it?
If you still face any problem, in unlocking yourself out of the Magento 2 admin panel, do mention them in the Comments section below.
I would be happy to help.
Don’t forget to share this solution with Magento Community via social media.
Thank you.
Jignesh Parmar
An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.
Prev
How to Get Product Salable Quantity in Magento 2
How to Display Simple Product Image for Configurable Product Image in Magento 2 Mini Cart and Cart
Next