title: “The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.”}
body: <p>I have created a user in Magento for customer. I need to create a login api for customer.For that I need a token to use.To generate that I have used the below code which ended up in  the following error.</p>
  <blockquote>
  <p>{&quot;message&quot;:&quot;The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.&quot;}</p>
  </blockquote>
  <p>My code is as follows</p>
  <pre><code>    &lt;?php
  
  $userData = [&quot;username&quot; =&gt; &quot;xxx@gmail.com&quot;, &quot;password&quot; =&gt; &quot;xxx&quot;];
  $ch = curl_init(&quot;https://www.djbjsdjs.com/rest/V1/integration/customer/token&quot;);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &quot;POST&quot;);
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($userData));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(&quot;Content-Type: application/json&quot;, &quot;Content-Lenght: &quot; . strlen(json_encode($userData))));
  
  $token = curl_exec($ch);
  print_r($token);
  </code></pre>