Further UI improvements (#8)

* Only set autosign in cookie upon clicking the button

* Show an already signed in link if you already have a token
This commit is contained in:
Christiaan Goossens
2024-12-28 15:21:37 +01:00
committed by GitHub
parent 9f60e9ea9a
commit ca83e86acb
6 changed files with 69 additions and 25 deletions

View File

@@ -34,7 +34,6 @@ class OIDCCallbackView(HomeAssistantView):
"error",
{
"error": "Missing code or state parameter.",
"link": get_url("/auth/oidc/redirect"),
},
)
return web.Response(text=view_html, content_type="text/html")
@@ -49,7 +48,6 @@ class OIDCCallbackView(HomeAssistantView):
{
"error": "Failed to get user details, "
+ "see Home Assistant logs for more information.",
"link": get_url("/auth/oidc/redirect"),
},
)
return web.Response(text=view_html, content_type="text/html")