Skip to content
Snippets Groups Projects
Commit 6e3ec97a authored by Jason Hu's avatar Jason Hu Committed by Paulus Schoutsen
Browse files

Include request.path in legacy api password warning message (#15438)

parent 4a6afc56
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@ def setup_auth(app, trusted_networks, use_auth,
if use_auth and (HTTP_HEADER_HA_AUTH in request.headers or
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
if (hdrs.AUTHORIZATION in request.headers and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment