Skip to content

Commit

Permalink
Include request.path in legacy api password warning message (#15438)
Browse files Browse the repository at this point in the history
  • Loading branch information
awarecan authored and balloob committed Jul 13, 2018
1 parent 4a6afc5 commit 6e3ec97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/http/auth.py
Expand Up @@ -27,7 +27,8 @@ async def auth_middleware(request, handler):

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
Expand Down

0 comments on commit 6e3ec97

Please sign in to comment.