I am moving my HA build from one device (Windows) to another (MacOS)…
Since both devices run in Virtualbox, my initial thought was to just use the VDI file from the old machine, in the new one, but this didn’t work (still not sure why, but that’s a different topic all on it’s own).
Then I thought I’d use my snapshot and just restore it on the new machine.
This worked fine and HA boots up and I need to put in my Username and Password, then do MFA.
At the MFA stage, I put in the 6 digits from the Authenticator app and it just says
Invalid authentication code
I can’t see that this shouldn’t work… So I am not sure what to do about it.
Thank you for your help on this thread. The issue is sorted now, but I actually didn’t change anything… I switched off the VM, started it up again and then the MFA just worked…
Thank you. I had a similar problem simply after doing a series of updates. After one of them MFA stropped working and I was locked out. Your suggestion of shutting down the VM and restarting worked for me.
I ran into an issue where suddenly my MFA no longer worked - no idea what happened here. Unfortunately I’m running HAOS, so this thread didn’t help me. I just want to post my own solution, as this is the first thread that popped up for me.
End goal is to remove the line for your user in the auth_module.totp file.
If you still have an account available with admin access, just head over to Studio Code Server, go into the .storage folder and edit the file.
Then reboot.
If you are unable to access any admin account:
connect a screen and keyboard to the machine you’re running HAOS on.
enter the home assistant docker using docker exec -it homeassistant /bin/bash