mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
Merge pull request #19959 from home-assistant/awarecan-trusted-network-auth-must-have-user
Trusted Network Auth: only authenticate request when owner can be found
This commit is contained in:
commit
3f65a03024
@ -92,8 +92,8 @@ def setup_auth(app, trusted_networks, api_password):
|
||||
for user in users:
|
||||
if user.is_owner:
|
||||
request['hass_user'] = user
|
||||
authenticated = True
|
||||
break
|
||||
authenticated = True
|
||||
|
||||
request[KEY_AUTHENTICATED] = authenticated
|
||||
return await handler(request)
|
||||
|
Loading…
Reference in New Issue
Block a user