【问题标题】:Customer account is temporarily disabled in magento客户帐户在 magento 中被暂时禁用
【发布时间】:2017-01-30 14:24:33
【问题描述】:

我正在尝试调用客户登录 api。

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

有身体

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

我收到一个错误

“您未正确登录或您的帐户被暂时禁用。”

但我可以通过 ma​​gento 网站登录。此错误仅适用于特定的电子邮件 ID。请帮助我

【问题讨论】:

    标签: php api magento magento2


    【解决方案1】:

    这是 mganeto 2 中的一个未解决问题。

    Github

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

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

    DELETE FROM oauth_token_request_log;
    

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

    【讨论】:

    • 你的意思是需要为 oauth_token_request_log clean 创建一个 Cron 你能上飞机吗
    • 这种变通方法是否完全有效?对我来说,我仍然有同样的错误信息。
    • @Muhsin,我已经清理了桌子oauth_token_request_log,但仍然有同样的问题,这对我没有帮助。
    • +1 这是我的问题的解决方案。实际上很难找到这个解决方案。我很高兴找到它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多