0

I am getting this error

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

during generating admin token in magento 2.1.12.

But admin panel is login with same username and password.

I don't know what is issue.Please Help.

11
  • please give the request body Commented May 24, 2018 at 15:08
  • {"message":"You did not sign in correctly or your account is temporarily disabled."} Commented May 24, 2018 at 15:25
  • reply asap..... Commented May 24, 2018 at 15:34
  • You gave response but I ask for json request body. Commented May 24, 2018 at 16:03
  • {"username":"admin","password":"admin@123"} Commented May 24, 2018 at 16:05

3 Answers 3

1

Get Admin Token

Please check your URL action [It must be POST]

magento.host/index.php/rest/V1/integration/customer/token?admin&password=admin123

it will generate admin token.

The above case i explained is working fine for webAPI in magento2 which i tested in POSTMAN.

0

i also stucked in the same situation once..

then i run setup upgrade, cache clear command, that solved my problem

0

I faced the same problem:

  • Right username and password
  • Right api endpoint
  • User not locked.

The solution for that was delete the content of the table oauth_token_request_log.

DELETE FROM oauth_token_request_log;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.