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 as 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 log in the admin panel will appear 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 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.
Causes of the Error magento you did not sign in correctly or your account is temporarily disabled
This error appear due to Magento 2’s security system. Magento 2 will temporarily disable accounts that do not meet it’s password complexity requirements. In the Magento 2 default, the password that meets security requirement must consist of:
- Uppercase letters
- Lowercase letters
- Special characters
- 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.
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 run 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
If none of the above methods work for you, you can generate a new admin account as last resort. Using 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="email@example.com" --admin-firstname="Admin" --admin-lastname="Admin"
Besides, to make sure that this error does not occur again, you enter a secure password which suite the following conditions.
- At least 8 characters long
- It contains both alphabetic and numeric characters
Note: Don’t try a wrong password multiple times to avoid Magento from getting suspicious.
Also, you can perform 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.
Magesolution hopes these solution will be helpful to you. So, definitely, you can fix the issue of magento 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!
About us: Magesolution is one of the leading Magento 2 extensions & theme providers and web development services in the world. We offer high-quality products and services, specifically eCommerce, Web, and Apps Development that will solve every simple to complex requirement.