summaryrefslogtreecommitdiff
path: root/src/token/extract/identity.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-11-25 21:02:25 -0500
committerOwen Jacobson <owen@grimoire.ca>2025-11-25 21:02:25 -0500
commit664e3beba053aee50fc6b3cdcc6ee0dfe5e0fe1f (patch)
tree096b997d56959dd88d099f4f96a383daa4dbc39a /src/token/extract/identity.rs
parent91c33501a315abe04aeed54aa27388ce0ad241ce (diff)
parent33601ef703a640b57e5bd0bf7dbd6d7ffa7377bf (diff)
Merge branch 'house-of-failed'
Diffstat (limited to 'src/token/extract/identity.rs')
-rw-r--r--src/token/extract/identity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/token/extract/identity.rs b/src/token/extract/identity.rs
index 5c004ef..59f1dfb 100644
--- a/src/token/extract/identity.rs
+++ b/src/token/extract/identity.rs
@@ -40,7 +40,7 @@ where
.await
.map_err(|err| match err {
ValidateError::InvalidToken => LoginError::Unauthorized,
- other => other.into(),
+ ValidateError::Failed(failed) => failed.into(),
})
}
}
@@ -59,7 +59,7 @@ where
match <Self as FromRequestParts<App>>::from_request_parts(parts, state).await {
Ok(identity) => Ok(Some(identity)),
Err(LoginError::Unauthorized) => Ok(None),
- Err(other) => Err(other),
+ Err(LoginError::Failure(other)) => Err(LoginError::Failure(other)),
}
}
}