The account sign-in was incorrect or your account is disabled temporarily Magento 2
Introduction
As a senior developer and technical blogger for Laravel Company, I often encounter issues that Magento 2 administrators face when trying to access the backend of their e-commerce sites. One common problem is receiving an error message stating “The account sign-in was incorrect or your account is disabled temporarily.”
In this post, we will explore why you might be seeing this message and provide a step-by-step guide on how to resolve it.
Understanding the Error Message
When you see this error message for the first time, it can be confusing. The system seems to indicate that either your username or password is incorrect, or there has been an account lockout due to multiple failed login attempts.
However, as you mentioned in your post, you’ve already tried unlocking the admin user and resetting the relevant columns in the admin_user table. If these standard troubleshooting steps aren’t working, we need to dig deeper into possible causes and solutions.
Potential Causes of the Error
Several factors could contribute to this issue:
-
Server Configuration: Since you mentioned that other sites on the same server are experiencing the problem, it might be a server-level configuration or security setting causing the issue.
-
Plesk Environment: As your sites are hosted under Plesk, there may be specific permissions or security settings within this control panel that could affect Magento 2 admin access.
-
Database Connection: A misconfiguration in the database connection settings could lead to this error message being displayed.
-
Security Plugins: If you have installed any third-party security plugins for Magento 2, these might be interfering with the login process.
Step-by-Step Solution Approach
Given the complexity of your situation and the fact that it affects multiple sites on a single server, I recommend following this structured approach:
1. Check Security Settings in Plesk
- Log into your Plesk control panel.
- Navigate to the “Domains” section and select one of the affected domains.
- Look for any recent changes or updates related to security settings and permissions.
2. Verify Database Connection Configuration
In your Magento 2 installation’s app/etc/env.php file, look for these lines:
'default_setup' => [
'connection' => [
'host' => 'your_hostname',
'dbname' => 'your_db_name',
'username' => 'your_username',
'password' => 'your_password',
'active' => '1'
],
],
Ensure that the credentials match those in your database configuration.
3. Review Security Plugins
If you have installed any security extensions, disable them temporarily to see if they are causing conflicts with the login process:
- Navigate to System > Configuration > Advanced.
- Search for “Security” and look for any enabled Extensions.
- Disable each extension one by one and test the admin login.
Conclusion
In conclusion, resolving the “account sign-in was incorrect or your account is disabled temporarily” error in Magento 2 requires a methodical approach that covers both server-level and application-specific configurations. By following our recommended steps and thoroughly checking security settings, database connections, and installed plugins, you should be able to identify and resolve the issue.
Remember, if you’re still facing difficulties after trying these solutions or need further assistance, don’t hesitate to reach out to a professional Magento developer or support team for expert guidance.
Visit Laravel Company for more insightful articles on e-commerce development, web security, and best practices.