0

I have a first install of the opensource 2.3 version with demo data. Everything seems to be working in the public facing pages, but I can't login as Admin. The demo customer login is fine.

I don't get anything in the error logs, the message returned is "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later."

The user isn't locked.

It seems to blow up in the function at line 568 of

vendor/magento/module-customer/Model/AccountManagement.php
 function authenticate($username, $password) 

But i'm not sure how to follow it after that.

1
  • first check in your database "admin_user" table, username is there or not, if there then reset the password by direct query in DB, which is fast way. Oct 31, 2019 at 4:25

2 Answers 2

0

You can create new user with this command:

php bin/magento admin:user:create --admin-user=test --admin-password=test456 [email protected] --admin-firstname=Test --admin-lastname=User

Then Your User Name will be : test and Password will be : test456

Then You can easily loggedin in Backend.

4
  • Thanks, but that doesn't work either. Oct 31, 2019 at 17:00
  • 1
    I guess I was trying to do an admin login on the customer login page. Carry over from working with drupal. Thanks. Oct 31, 2019 at 19:26
  • Okay, But this will help you to solve this problem for next time. Nov 1, 2019 at 4:55
  • 1
    Yes, I learned a lot about how the admin user is created. Thanks. Nov 2, 2019 at 16:57
0

I was trying to login as an admin on the customer login page. I did a wizard install which redirected me to the correct login page and everything works.

Your Answer

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

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