Have you ever come across this message “You did not sign in correctly or your account is temporarily disabled” when logging into your Magento admin account?
Don’t worry since you are certainly not alone, there are other users who have this problem and post their questions on the Magento forum.
Contents
Why The Error Occurs
Magento 2’s security system requires a password that contains alphabetic and numeric characters. If your password doesn’t meet this requirement, then the system may temporarily lock your account.
2 Solutions To Fix The Error
Solution 1: Unlock admin account
In case this message appears, you are not using the correct username or password to sign in.
Yet this error can be easily debugged.
You can unlock your Magento 2 admin account using this command:
php bin/magento admin:user:unlock <username>
Or else, navigate to the Magento root folder and type in:
php bin/magento admin:user:unlock <username>
For example, you can put:
php bin/magento admin:user:unlock <admin2>
Solution 2: Reset Password
The most straightforward way to reset your password is using the “Forgot your password?” link on the log in panel.
Once clicking the link, you’ll see:
Enter the email address that the admin account is linked to. Click Retrieve password.
Open the email account and you’ll see an email from the system to reset your password.
Here are the requirements when resetting your Magento 2 account password:
- User Name is a required field.
- First Name is a required field.
- Last Name is a required field.
- Enter a valid email.
- Password is a required field.
- The password must be at least 7 characters.
- Numeric and alphabetic characters are to be included in the password.
By applying one of the 2 solutions, you now can sign in to your Magento account normally. Thus, you will not see the “you did not sign in correctly or your account is temporarily disabled” error again.