Turning Off two factor authentication

Is it possible to turn off Two Factor authentication through the Console? regardless of what I do, I can’t log in to Home Assistant front end using the code provided by the google authenticator any more after having to restore a snapshot. time appears to be ok as does the timezone. So I’d like to know if there is a config I can edit to turn this off locally.



now whether this was the right thing to do or not.

  • renamed auth_module.totp to auth_module.totp.tmp which I found in /config/.storage
  • rebooted the host.
  • Logged in without being asked for the two-factor code.
  • Enabled then Disabled the Authenticator app through the GUI
  • Saw that the original file auth_module.totp has been recreated.

All seems fine now.



Thanks so much. It worked.

1 Like

I had trouble finding the file on my hassio instance, but renaming the file and rebooting worked for me. To get to that file I had to:

  1. Connect monitor and keyboard to my Pi
  2. Enter “login” in the ha terminal that comes up by default. This allowed me to access the host system
  3. connect to the docker container that is running home assistant: docker exec -it homeassistant bash
  4. When I connected to the docker container, I was in the config directory by default, so I had to move into the hidden .storage folder
  5. rename the totp file with “mv auth_module.totp auth_mudule.totp.tmp”
  6. Reboot the home assistant machine

I’m locked out of my HA (smartphone crashed with authenticated HA client and verified authenticator app). I’m unable to use the HA app nor am I able to logon via the web gui.

Looks like I need to perform the actions you suggested. But how do I go about this when HA is running as a docker image? I guess the /config/.storage is within that image, since I can’t find this anywhere.

Thanks for helping me out.

Found it. done.

hi guys, i have the same problem. can it be disabled by entering the micro sd without having to access with monitor? and if so what should i do? thank you