Stumbling upon this tutorial means that you have encountered the error “you did not sign in correctly or your account is temporarily disabled” in your Magento store and are looking for a solution. I know how frustrating it is when you are sure you are entering the correct login details and there is no issue in your account but are still getting the error. Even more, when you can’t figure out the problem.
Following are the error messages that appear while logging-in to Magento admin panel:
Magento 2.0 - 2.2.9:Magento sometimes unlock an account for security purposes. In this case, you can unlock it by going to your Magento 2 root folder via SSH/PUTTY and running the following command.
php bin/magento admin:user:unlock <username> Example: php bin/magento admin:user:unlock admin
Alternatively, go to bin directory from Magento 2 root: cd bin/ and run the command below.
php magento admin:user:unlock <username> Example: php magento admin:user:unlock admin
You can also try to truncate the admin sessions table admin_user_session
If none of the above solutions work, create a new admin account as last resort. Run the command below to do so. Put -h at the end to see the required options.
php bin/magento admin:user:create --admin-user="username" --admin-password="mypassword"--admin- email="paul@fmeextensions.com" --admin-firstname="Admin" --admin-lastname="Admin"
To ensure this issue does not occur again, make sure you enter a secure password which meets the following conditions.
Don’t try a wrong password multiple times to avoid Magento from getting suspicious.
Are you still getting the error? Please let us know.
Related Posts: