客户帐户在 magento 中暂时被禁用

Customer account is temporarily disabled in magento

我正在尝试呼叫客户登录 api。

{{url}}/index.php/rest/V1/integration/customer/token

和body

{
    "username" : "xxxxx@gmail.com",
    "password" : "fsfsdf"
}

我遇到错误

"You did not sign in correctly or your account is temporarily disabled."

但我可以通过 magento 网站登录。此错误仅针对特定电子邮件 ids.Please 帮助我

这是 mganeto 2 中的未决问题。

Github

Magento2 会跟踪使用电子邮件和错误密码获取令牌的失败尝试(在 oauth_token_request_log table 中)。如果 failures_count 列达到最大允许值(默认为 6)。然后认证失败。

我已经完成的一个临时解决方案是 运行 对数据库执行此清理的 cron 作业。

DELETE FROM oauth_token_request_log;

以上SQL将每1分钟运行一次。