Magento 2.4.1, I had 2FA working with BOTH Authy and Google Authenticator.
A 3rd-party extension @Amasty provider asked me to disable 2FA on my site temporarily, so I did via:
bin/magento module:disable Magento_TwoFactorAuth bin/magento cache:flush
Now I've re-enabled 2FA by:
bin/magento module:enable Magento_TwoFactorAuth bin/magento cache:flush
And now the 2FA - Authy login screen has an empty Country drop-down list, and which keeps Authy from working.
I have checked file permissions, reset caches, everything I could think of.
Can someone help me get this fixed - I really want to use Authy.
Thanks.
OK - I have figured out the problem, now I need some help to fix it.
It SEEMS like when I disabled Magento_TwoFactorAuth, it DELETED the CONTENTS of the tfa_country_codes table in the database.
That table is there, but EMPTY!
Then the subsequent re-enable of Magento_TwoFactorAuth did NOT RE-POPULATE that table!
So - can someone tell me how to cleanly repopulate that table in my database?
For anyone else who has this problem, I fixed it by exporting that database table "tfa_country_codes" as a csv file, from another install/database and importing it into the database table where it was missing.
However, I now have a new problem. When I go to login via authy, it sends the SMS to my phone, but comes up with this error on the Magento admin login page and does not allow you to continue:
Error