Add .well-known/password-change (#39613)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-09-03 18:13:33 +02:00
1 parent 4ebcbadfc2
commit fbbfd46fb8
3 files changed
+15 -2

No files matched your search

@@ -284,6 +284,10 @@ async def async_setup(hass, config):
hass.http.register_static_path(
"/auth/authorize", str(root_path / "authorize.html"), False
)
# https://wicg.github.io/change-password-url/
hass.http.register_redirect(
"/.well-known/change-password", "/profile", redirect_exc=web.HTTPFound
)
local = hass.config.path("www")
if os.path.isdir(local):