We often notice that despite entering a username and password, we get an error: You did not sign in correctly or your account is temporarily disabled. It happens while someone has tried to attempt a login with invalid credentials.
Magento 2 locks the admin user on multiple invalid attempts for security reasons. So, there must be a way to resolve this issue. As technical people, we require a quick solution like a command.
Fortunately, Magento 2 provides a mechanism to unlock the user if such a situation happens.
As we can create or update an admin user from the command
php bin/magento admin:user, we also can unlock the admin user using the same command.
We just need to pass the username as a parameter we want to unlock. The command is effortless and easy to memorise. Let’s have a look at it.
Magento 2 Provides the Below command to unlock the admin user.
Solution For Magento 2: How to Unlock Admin User?
php bin/magento admin:user:unlock <username>
In my case, Admin User Name is admin.
php bin/magento admin:user:unlock admin
That’s it. I hope you like my blogs. Keep reading and sharing with your connection.
Checkout My Repo https://github.com/sbdevblog
Please use comment box to share your feedback, If you like my blogs, Please share https://sbdevblog.com/ with your connections.
Note: Please verify the code of this blog and the relevant git repository before using it in production.
🙂 HAPPY CODING 🙂