同步 MNote 授权目录到 OpenHub
This commit is contained in:
@@ -2203,7 +2203,16 @@ async fn handle_sqlite_auth_action(
|
||||
});
|
||||
|
||||
let provider_sync_results = if flow == "signUp" {
|
||||
let results = sync_provider_identities(&resolved.user, &password_for_provider_sync).await;
|
||||
let directory_grants = state
|
||||
.control_plane()
|
||||
.list_directory_grants_for_actor(&resolved.user.id)
|
||||
.unwrap_or_default();
|
||||
let results = sync_provider_identities(
|
||||
&resolved.user,
|
||||
&password_for_provider_sync,
|
||||
&directory_grants,
|
||||
)
|
||||
.await;
|
||||
let _ = state.control_plane().append_audit(AppendAuditInput {
|
||||
actor_user_id: Some(resolved.user.id.clone()),
|
||||
action: "control.auth.provider_identities_synced".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user