Fix type problems

This commit is contained in:
Eric Eastwood
2026-04-06 15:01:35 -05:00
parent 8964793f31
commit a2eba2891f
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -594,7 +594,7 @@ async fn token_login(
user: &browser_session.user,
login: CompatLogin::Token,
session_replaced,
session_counts,
session_counts: &session_counts,
requester,
})
.await?;
@@ -730,7 +730,7 @@ async fn user_password_login(
user: &user,
login: CompatLogin::Password,
session_replaced,
session_counts,
session_counts: &session_counts,
requester: policy_requester,
})
.await?;
@@ -781,7 +781,7 @@ async fn user_password_login(
let mut sessions_removed = 0;
for edge in compat.edges {
let (compat_session, _) = edge.node;
let compat_session =
let _compat_session =
repo.compat_session().finish(clock, compat_session).await?;
sessions_removed += 1;
}
@@ -123,7 +123,7 @@ pub async fn get(
// We don't know if there's going to be a replacement until we received the device ID,
// which happens too late.
session_replaced: false,
session_counts,
session_counts: &session_counts,
requester: mas_policy::Requester {
ip_address: activity_tracker.ip(),
user_agent,
@@ -268,7 +268,7 @@ pub async fn post(
login: CompatLogin::Sso {
redirect_uri: login.redirect_uri.to_string(),
},
session_counts,
session_counts: &session_counts,
// We don't know if there's going to be a replacement until we received the device ID,
// which happens too late.
session_replaced: false,
+1 -1
View File
@@ -202,7 +202,7 @@ pub struct CompatLoginInput<'a> {
pub user: &'a User,
/// How many sessions the user has.
pub session_counts: SessionCounts,
pub session_counts: &'a SessionCounts,
/// Whether a session will be replaced by this login
pub session_replaced: bool,