We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d06ff7c commit 1e8b4aaCopy full SHA for 1e8b4aa
src/handlers/http/oidc.rs
@@ -406,12 +406,12 @@ pub async fn update_user_if_changed(
406
return Ok(user);
407
}
408
409
- oauth_user.user_info = user_info.clone();
+ oauth_user.user_info.clone_from(&user_info);
410
*roles = group;
411
412
// Update userid to use sub if available (migration from name-based to sub-based identification)
413
if let Some(ref sub) = user_info.sub {
414
- oauth_user.userid = sub.clone();
+ oauth_user.userid.clone_from(sub);
415
416
417
let mut metadata = get_metadata().await?;
0 commit comments