Pre-release 3 for v0.7.0 (#129)
* Bump to 0.7.0-alpha-rc3 * Small tweak to forgot password link * Add version param for cache busting
This commit is contained in:
committed by
GitHub
parent
d1da841e1f
commit
5714e844a7
@@ -8,7 +8,9 @@ from typing import Any, Dict
|
||||
|
||||
DEFAULT_TITLE = "OpenID Connect (SSO)"
|
||||
DOMAIN = "auth_oidc"
|
||||
REPO_ROOT_URL = "https://github.com/christiaangoossens/hass-oidc-auth/tree/v0.7.0-alpha"
|
||||
REPO_ROOT_URL = (
|
||||
"https://github.com/christiaangoossens/hass-oidc-auth/tree/v0.7.0-alpha-rc3"
|
||||
)
|
||||
|
||||
## ===
|
||||
## Config keys
|
||||
|
||||
@@ -63,7 +63,7 @@ async def frontend_injection(hass: HomeAssistant, sso_name: str) -> None:
|
||||
# Inject JS and register that route
|
||||
frontend_code = frontend_code.replace(
|
||||
"</body>",
|
||||
"<script src='/auth/oidc/static/injection.js'></script><script>window.sso_name = '"
|
||||
"<script src='/auth/oidc/static/injection.js?v=3'></script><script>window.sso_name = '"
|
||||
+ sso_name
|
||||
+ "';</script></body>",
|
||||
)
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
"jinja2>=3.1.4",
|
||||
"bcrypt>=4.2.0"
|
||||
],
|
||||
"version": "0.7.0"
|
||||
"version": "0.7.0-rc3"
|
||||
}
|
||||
@@ -31,6 +31,7 @@ function update() {
|
||||
const loginButton = document.querySelector("ha-button:not(.sso)")
|
||||
const errorAlert = document.querySelector("ha-auth-form ha-alert[alert-type=error]")
|
||||
const loginOptionList = document.querySelector("ha-pick-auth-provider")?.shadowRoot?.querySelector("ha-list")
|
||||
const forgotPasswordLink = document.querySelector(".forgot-password")
|
||||
|
||||
// ====
|
||||
// Code input
|
||||
@@ -149,9 +150,11 @@ function update() {
|
||||
if (isOurScreen) {
|
||||
// Hide the header on our screens
|
||||
loginHeader.style.display = "none"
|
||||
forgotPasswordLink.style.display = "none"
|
||||
} else {
|
||||
// Show the header on the login screen
|
||||
loginHeader.style.display = ""
|
||||
forgotPasswordLink.style.display = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user