Customer account is temporarily disabled in magento

Customer account is temporarily disabled in magento

July 16, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Customer account is temporarily disabled in magento

Understanding Magento Account Disabling Errors

Are you facing an issue where certain customer accounts are temporarily disabled during API calls while being able to log in through the Magento website? This can be quite frustrating, especially when dealing with specific email IDs. In this blog post, we’ll dive into what might be causing this problem and how to troubleshoot it effectively.

Understanding the Error Message

The error message “You did not sign in correctly or your account is temporarily disabled.” suggests that there’s an issue with the customer authentication process, but it doesn’t provide specific insights. Let’s explore some common scenarios that could trigger this response.

Scenario 1: Incorrect Password Hashing

In Magento, passwords are hashed using a hashing algorithm (usually bcrypt in recent versions). If you’re manually creating or updating customers through the API, ensure you’re correctly hashing the password before sending it to the server. A common mistake is sending plaintext passwords instead of hashed ones.

Here’s how you should hash a password in PHP:

$hash = password_hash('plaintext_password', PASSWORD_BCRYPT);

Scenario 2: Account Lockout

Magento has built-in account lockout protection that temporarily disables an account after multiple failed login attempts. If the customer has attempted to log in with an incorrect password too many times through the API, their account might be locked until they reset it via the website.

Check if this feature is enabled in your Magento configuration:

Admin -> Stores -> Configuration -> Advanced -> Security

Look for the “Failed Logins” setting. If it’s set to a non-zero value, you’ll need to ensure that failed API login attempts don’t exceed this limit.

Scenario 3: Incorrect API Endpoint or Method

Ensure you’re using the correct API endpoint and method for customer authentication. In your example, you’ve used index.php/rest/V1/integration/customer/token, which is a valid endpoint for generating an OAuth token. However, if this doesn’t work as expected, consider:

  • Using the /V1/customer/login endpoint instead.
  • Checking if your API is correctly configured to allow access to these resources.

Troubleshooting Steps

To pinpoint the issue effectively, follow these troubleshooting steps:

Step 1: Check Customer Status in Admin Panel

Log in to your Magento admin panel and navigate to “Customers -> All Customers”. Find the affected customer accounts and check their status. If it’s set to “Disabled”, you’ve found the root cause.

Step 2: Review API Logs

Enable debugging for your API by adding true to the following configuration file:

app/etc/env.php

Look for lines like this:

'logger' => [
    'log_files' => [....],
    'log_file_path' => '/var/log/magento/',
    ...
    'debug' => true,
]

Once enabled, examine the API logs located in /var/log/magento/.

Step 3: Contact Magento Support or Consult a Professional

If none of the above solutions work, consider reaching out to official Magento support or consulting with a professional Magento developer. They can help you diagnose complex issues and provide tailored recommendations for your specific setup.

Conclusion

In this blog post, we explored possible reasons why certain customer accounts might appear temporarily disabled during API calls while being functional on the website. The key takeaways are:

  • Ensure correct password hashing when dealing with customer data.
  • Monitor account lockout settings in the Magento configuration.
  • Check customer status and review API logs for further insights.

Remember, every Magento installation is unique, so you might need to adapt these suggestions based on your specific environment and customizations. If you’re looking for professional assistance or expert solutions for your Magento store, don’t hesitate to visit Laravel Company, where we specialize in providing top-notch Magento development services.

Happy troubleshooting!

API Email Customers Errors

Our network