1

I am Not log in to admin account

Username And Password is Correct but cannot log

please help.

2 Answers 2

0

I have no idea what the problem might be, but you can still get access by creating another admin account:

php bin/magento admin:user:create --admin-user="USERNAME_HERE" --admin-password="YOUR PASSWORD HERE" --admin-email="[email protected]" --admin-firstname="FIRST NAME HERE" --admin-lastname="LAST NAME HERE"

After this you should use the new account to login and try to see what's wrong with your old account.

8
  • how to get and how to reset ? May 11, 2019 at 12:39
  • using this commad you can create a new admin account May 11, 2019 at 12:39
  • and after login with new account you can set old account password May 11, 2019 at 12:40
  • this command should be used in Magento developer portal right ? May 11, 2019 at 12:42
  • we only have the admin access from the hosting company . May 11, 2019 at 12:42
0

If you using putty login to putty and direct to Magento directory path. And then run below command.

php bin/magento admin:user:create --admin-user="USERNAME_HERE" --admin-password="YOUR PASSWORD HERE" --admin-email="[email protected]" --admin-firstname="FIRST NAME HERE" --admin-lastname="LAST NAME HERE"

The above command will create new user. After login to admin go to admin user and check what is the issue with old user which you were trying to login.

If you did not find anything in magento admin then login to Database check for admin_user table and check.

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.