Fixed: You Did Not Sign in Correctly or Your Account is Temporarily Disabled

Fixed: You Did Not Sign in Correctly or Your Account is Temporarily Disabled

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:
  • You did not sign in correctly or your account is temporarily disabled.
In Magento 2.3.x:
  • The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.

How to Solve This Error?

Following are the possible solutions to the issue. Try any of them to see if it works for you.

Solution 1: Unlock the Account

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

Solution 2: Check the Locked User in the Database

The above solution should fix the issue. If it persists, try the following.
  • Connect to your database and check the admin_user table.
  • Find the user that is locked and make sure that the is_active column is set to 1.

You can also try to truncate the admin sessions table admin_user_session

Solution 3: Create a New Admin Account

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"

Password Cautions

To ensure this issue does not occur again, make sure you enter a secure password which meets the following conditions.

  • At least 8 characters long
  • Includes both alphabetic and numeric characters

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: