2

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."}
3

You Just Run this Command in Magento Root.

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

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

| improve this answer | |
2

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"
| improve this answer | |
  • No its wrong..why you create another one?? you can unlock admin. – Magento2 Devloper Jun 11 '17 at 6:35
  • It's alternative method.When user not unlock – Ketan Borada Jun 12 '17 at 5:24
0

Change password by using below query in mysql

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

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.