summaryrefslogtreecommitdiff
path: root/src/repo/login/extract.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo/login/extract.rs')
-rw-r--r--src/repo/login/extract.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repo/login/extract.rs b/src/repo/login/extract.rs
index e5f96d0..c127078 100644
--- a/src/repo/login/extract.rs
+++ b/src/repo/login/extract.rs
@@ -32,7 +32,7 @@ impl FromRequestParts<App> for Login {
let secret = identity_token.secret().ok_or(LoginError::Unauthorized)?;
let app = State::<App>::from_request_parts(parts, state).await?;
- match app.logins().validate(secret, &used_at).await {
+ match app.logins().validate(&secret, &used_at).await {
Ok(login) => Ok(login),
Err(ValidateError::InvalidToken) => Err(LoginError::Unauthorized),
Err(other) => Err(other.into()),