Google Assistant: Track if request is local (#31226)
* Track if request is local * Cancel early if 2FA disabled * Allow disabling 2FA for ack * Do not mark devices with 2FA as reachable * Add request source to GA events
This commit is contained in:
1 parent
03954be12d
commit
8ceef72853
9 files changed
+99
-19
No files matched your search
@@ -1447,6 +1447,8 @@ def _verify_pin_challenge(data, state, challenge):
|
||||
|
||||
|
||||
def _verify_ack_challenge(data, state, challenge):
|
||||
"""Verify a pin challenge."""
|
||||
"""Verify an ack challenge."""
|
||||
if not data.config.should_2fa(state):
|
||||
return
|
||||
if not challenge or not challenge.get("ack"):
|
||||
raise ChallengeNeeded(CHALLENGE_ACK_NEEDED)
|
||||
Reference in new issue
Block a user