I am trying to log in for the first time and I have unlocked the admin user in cmd with (php bin/magento admin:user:unlock admin) I see admin user has been unlocked but when I go back to the login i get the same issue again.

  • can you try to use google chrome incognito mode?
    – Paul Fan
    Commented Aug 21, 2020 at 18:42

1 Answer 1


If your environment is a development environment and you just want to access the backend, you may create another user, a quick fix is to create a new user:

php bin/magento admin:user:create --admin-user='yourusername' --admin-password='!admin123!' --admin-email='[email protected]' --admin-firstname='Jon' --admin-lastname='Doe'

if it is a production environment, you may want to understand further the issue: connect to your database, select * from admin_user where username='<youruser>' limit 1\G

the above query will show your admin data.enter image description here

the bottom fields specifically should be identical to the screenshot. So, you may update these fields and then, you should be able to login.

  • i created a new account and it worked thank you Commented Aug 23, 2020 at 0:38

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.