Hello,
When developing and testing, I usually create a backup from our prod base on odoo.sh and replicate it locally in a docker instance. However, after enabling Two-factor authentication in production, I'm also faced with this when logging in on the local replica, but my 2FA codes doesn't work on this local instance. I assume this is intentional/because of security, but now I'm suddenly not able to log in to my local instances!
I have found a workaround, which is to connect directly to the backend database in postgres and edit the user entry to disable 2FA, but this gets quite tedious to do every time. Is there any other way to either make 2FA work for restored backup, or just disable 2FA for them completely?