1

Having issues attempting to login to the back end of my M2 store. My login is correct, but when I attempt to login, I get an incorrect CAPTCHA message (even though there was no CAPTCHA on the initial login screen) and then I try again and this time it tells me I'm locked out.

I saw a post similar to this here (Can't log into Magento Admin, "Invalid Captcha" error appears) but this seems to just disable CAPTCHA completely and to me, that's more like a band-aid than a real solution. I certainly don't want to disable the CAPTCHA. I just want to resolve this issue and login successfully instead.

  • There is another way: create a new admin user by using command line. – Khoa TruongDinh Sep 12 '19 at 4:07
0

You can update password of your admin login by below command:

php bin/magento admin:user:create --admin-user=abcd --admin-password=abcd@123 --admin-email=abcd@gmail.com --admin-firstname=ABCD --admin-lastname=EFGH

Point to be noted:

Keep everything same as your last admin user detail like admin user, email, firstname and lastname but just update your password(--admin-password).

Your can keep the same old password and enter that once again.

After done with above you can login with your current details.

| improve this answer | |
0

You have to Unlock an administrator account sometimes

Use this command to unlock the account of an administrator that was locked, typically because of multiple incorrect login attempts.

bin/magento admin:user:unlock {username}

You must specify the administrator’s username. Example:

bin/magento admin:user:unlock admin

The user account "admin" has been unlocked

Source : https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-subcommands-admin.html

| 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.