1
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:
Paulus Schoutsen 2019-01-11 09:53:35 -08:00 committed by GitHub
commit 3f65a03024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)