mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Include request.path in legacy api password warning message (#15438)
This commit is contained in:
parent
4a6afc5614
commit
6e3ec97acf
@ -27,7 +27,8 @@ def setup_auth(app, trusted_networks, use_auth,
|
|||||||
|
|
||||||
if use_auth and (HTTP_HEADER_HA_AUTH in request.headers or
|
if use_auth and (HTTP_HEADER_HA_AUTH in request.headers or
|
||||||
DATA_API_PASSWORD in request.query):
|
DATA_API_PASSWORD in request.query):
|
||||||
_LOGGER.warning('Please use access_token instead api_password.')
|
_LOGGER.warning('Please change to use bearer token access %s',
|
||||||
|
request.path)
|
||||||
|
|
||||||
legacy_auth = (not use_auth or support_legacy) and api_password
|
legacy_auth = (not use_auth or support_legacy) and api_password
|
||||||
if (hdrs.AUTHORIZATION in request.headers and
|
if (hdrs.AUTHORIZATION in request.headers and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user