After upgrading to Magento 2.4.3 we are stuck in a loop with 2FA when trying to login into the admin.

I have been unable to complete an admin login, the 2FA would succeed after entering a code and then loop back to asking for the authentication again.

New contributor
ReubensZ1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

For anyone else who gets this after upgrading to Magento 2.4.3 or above. We had the same issue. Fix for us was:
Temporarily disable forced passwords

php bin/magento config:set admin/security/password_is_forced 0
php bin/magento cache:flush

In the MAP we had to go to: Stores > Config > Advanced | System > Security Set Max Session Size in Admin to 0 This gave a warning, but saved fine. Then flushed cache.

We could then re-enable force password change

php bin/magento config:set admin/security/password_is_forced 1

or Stores > Config > Advanced | Admin > Security Set Password Change to Forced Then flush cache.

Your Answer

ReubensZ1 is a new contributor. Be nice, and check out our Code of Conduct.

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.