Skip to content

Commit

Permalink
authentication identity
Browse files Browse the repository at this point in the history
  • Loading branch information
Timshel committed Sep 18, 2023
1 parent 4edc0d6 commit e344cad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down Expand Up @@ -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!({
Expand Down

0 comments on commit e344cad

Please sign in to comment.