Can't sign in in my Hass

Who can help me?
I can sign in with my account on my cell or ipad no problem.
When I want to sign in on a Windows PC with Google Chrome with my local made user in HASS I can’t.

I already removed cookies of the website but can’t get in. Typed even on purpose a wrong password to check if the mechanism works and it does, it claims the password is indeed incorrect.

Please I like to fix this.

1 Like

I don’t know if this will help but it might be worth a try. You can reset the login by removing the “auth” and “onboarding” files from the “homeassistant/.homeassistant/.storage/” directory.
You will need to restart Home Assistant after you remove the files. This will allow you to enter a new username and password.

Hi guys

for one or the other reason (upgrade?) I can’t login anymore on a new browser/machine with my current login/pass combination.
As I have a browser where I still had access, I defined a new admin user, with login/pass: ddd/ddd , (tried others too first), trying to login (incognito mode, same browser, edge, iphone), all resulted in wrong login or pass :frowning:
I deleted the 2 files mentioned above, restarted, and going back to http://IP:8123/onboarding.html I enter user & pass, submit, nothing happens anymore, refreshing or other pages, nothing…
I just started with HA, so not a big issue, though I’m worried for future …

anyone seen that before ?
tx

I installed a fresh HA installation and somehow the admin user’s password was incorrectly entered or saved, so I can only ssh into the RPi host right now. I created a snapshot after a few hours of setup, but that may not help me now.

Though, it looks like it is possible to connect a keyboard/monitor up the Pi and manually add a user via the console:

One other solution, if you can SSH or can update the config remotely (e.g. git), you can add trusted networks for logins and not require passwords:

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/24

Then you can select which user to login with (without a password) and reset the admin’s password. Remove any of the above auth_providers you added after a successful login.

See https://www.home-assistant.io/docs/authentication/providers/

1 Like

This was very helpful thanks, got back in! :slight_smile: