diff --git a/src/api/identity.rs b/src/api/identity.rs index abb53a43a1d..afd915185b0 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -318,6 +318,8 @@ async fn _password_login( authenticated_response(scope, scope_vec, &user, &mut device, new_device, twofactor_token, &now, conn, ip).await } + +#[allow(clippy::too_many_arguments)] async fn authenticated_response( scope: &String, scope_vec: Vec, @@ -361,7 +363,7 @@ async fn authenticated_response( } let orgs = UserOrganization::find_confirmed_by_user(&user.uuid, conn).await; - let (access_token, expires_in) = device.refresh_tokens(&user, orgs, scope_vec); + let (access_token, expires_in) = device.refresh_tokens(user, orgs, scope_vec); device.save(conn).await?; let mut result = json!({