Merge "Fix logic for token searching on authorize_create"

This commit is contained in:
Treehugger Robot 2021-11-29 21:55:58 +00:00 committed by Gerrit Code Review
commit 4f279211bf

View file

@ -629,7 +629,7 @@ impl Enforcements {
let hat_and_last_off_body = if need_auth_token {
let hat_and_last_off_body = Self::find_auth_token(|hat: &AuthTokenEntry| {
if let (Some(auth_type), true) = (user_auth_type, has_sids) {
if let (Some(auth_type), true) = (user_auth_type, timeout_bound) {
hat.satisfies(&user_secure_ids, auth_type)
} else {
unlocked_device_required