I am using this MageREST Framework in PHP for Magento 2.1.3 Installation.

But I am getting this error-

401 Unauthorized` response:
{"message":"You did not sign in correctly or your account is temporarily disabled."}

You Just Run this Command in Magento Root.

php bin/magento admin:user:unlock <username>

It's Working after remove cache and generation folder..


Create New User. Run this command in your magento root folder

sudo php bin/magento admin:user:create --admin-user="ketan" --admin-password="admin@123" --admin-email="ketan.borada9419@gmail.com" --admin-firstname="Ketan" --admin-lastname="Borada"
  • No its wrong..why you create another one?? you can unlock admin. Jun 11 '17 at 6:35
  • It's alternative method.When user not unlock Jun 12 '17 at 5:24

Change password by using below query in mysql

UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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