Magento you did not sign in correctly or your account is temporarily disabled: How to solve it in Magento 2

When working with Magento 2, sometimes you meet the message “Magento you did not sign in correctly or your account is temporarily disabled” in your Magento 2 store. In this tutorial, Magesolution will explain to you the nature of this error message and certainly,  all proper solutions to fix these issues.

Magento is considered a powerful platform because of its ease of use admin panel. Sometimes a non-developer can also operate the admin panel for all the common tasks. In that case, when it comes to logging in the admin panel will appear with a message error of ” you did not sign incorrectly and it also throws the error of your account is temporarily disabled. In this case, you are either not using the correct password or the username is incorrect then to fix this issue.

Following are the error messages that  you will encounter while logging in to the Magento admin panel:

Magento 2.0 – 2.2.9:

  • You did not sign in rightly 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.
Error Magento

Causes of the Error Magento you did not sign in correctly or your account is temporarily disabled

This error appears due to Magento 2’s security system. Magento 2 will temporarily disable accounts that do not meet its password complexity requirements. In the Magento 2 default, the password that meets security requirements must consist of:

  1. Uppercase letters
  2. Lowercase letters
  3. Numeric
  4. Special characters
  5. Minimum of 8 characters

In the next part. We will show you a complete explanation to resolve the sign-in error or the error is like your account is temporarily disabled.

Read more:

>> Email templates: How to edit and manage it in Magento 2

How to Solve This Error?

The following are the solutions to this issue. Try one of these solutions to see if it works for you.

Method 1: Unlock the Account

Sometimes Magento 2 locks an account for security purposes. In this case, you can unlock it by moving to your Magento 2 root folder in the command or terminal and running the below command:

php bin/magento admin:user:unlock <username>
Example: php bin/magento admin:user:unlock admin

Method 2: Check Database for Locked User

The above method can’t help you to resolve the issue. If it persists, try the following solution

  • Connect to your database and check the admin_user table.
  • Find the user that is locked and ensure that the is_active column is set to 1.

You can also try to shorten the admin sessions table admin_user_session

Method 3: Generate a New Admin Account

New Admin Account

If none of the above methods work for you, you can generate a new admin account as last resort. Use 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

Besides, to make sure that this error does not occur again, you enter a secure password that suits the following conditions.

  • At least 8 characters long
  • It contains both alphabetic and numeric characters

Note: Don’t try the wrong password multiple times to avoid Magento from getting suspicious.

Method 4

Also, you can perform the following steps to solve the error

  • Remove semicolon from the beginning of the line;extension=sodium from php.ini which enables it.
  • Copy C:\xampp\php\libsodium.dll to C:\xampp\apache\bin\
  • Restart Apache means stop and start Apache.

How to avoid this Error in Magento 2?

Keep in mind that your password meets the following conditions:

  • 8 characters long (At least)
  • Contain alphabetic and numeric characters both
  • Avoid signing in with the wrong password again and again.

Conclusion

Magesolution hopes this solution will be helpful to you. So, definitely, you can fix the issue of Magento if you did not sign in correctly or your account is temporarily disabled. In case you face any difficulties, CONTACT US and we will definitely support you with our Magento Website Development service.

Customer journey: Understanding and how to optimize it in Magento 2