Set password
[ZITADOPER-1]
This commit is contained in:
@@ -525,6 +525,14 @@ func (r *ZitadelClusterReconciler) reconcileInitialHumanUser(ctx context.Context
|
|||||||
return ctrl.Result{}, fmt.Errorf("Error adding org member: %v", err)
|
return ctrl.Result{}, fmt.Errorf("Error adding org member: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
if _, err := managementClient.SetHumanPassword(middleware.SetOrgID(ctx, org.Org.Id), &management.SetHumanPasswordRequest{
|
||||||
|
UserId: userid,
|
||||||
|
Password: password,
|
||||||
|
NoChangeRequired: true,
|
||||||
|
}); err != nil {
|
||||||
|
return ctrl.Result{}, fmt.Errorf("Error setting passowrd for member: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
patch := client.MergeFrom(zitadel.DeepCopy())
|
patch := client.MergeFrom(zitadel.DeepCopy())
|
||||||
|
|||||||
Reference in New Issue
Block a user