mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Fix camera token to trigger authentication IP ban (#75870)
This commit is contained in:
parent
a020482c23
commit
166e58eaa4
@ -715,7 +715,9 @@ class CameraView(HomeAssistantView):
|
||||
)
|
||||
|
||||
if not authenticated:
|
||||
raise web.HTTPUnauthorized()
|
||||
if request[KEY_AUTHENTICATED]:
|
||||
raise web.HTTPUnauthorized()
|
||||
raise web.HTTPForbidden()
|
||||
|
||||
if not camera.is_on:
|
||||
_LOGGER.debug("Camera is off")
|
||||
|
Loading…
x
Reference in New Issue
Block a user