mirror of
https://github.com/bitwarden/server
synced 2025-12-26 13:13:24 +00:00
Ran dotnet format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Bit.DbSeederUtility;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using CsvHelper;
|
||||
using CsvHelper.Configuration;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace Bit.Seeder.Migration;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for database importers that migrate data from SQL Server to various database systems.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using MySqlConnector;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Utils;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MySqlConnector;
|
||||
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Npgsql;
|
||||
using NpgsqlTypes;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Utils;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Npgsql;
|
||||
using NpgsqlTypes;
|
||||
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.Data.SqlClient;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Utils;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Microsoft.Data.SqlClient;
|
||||
using System.Data;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Utils;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Data;
|
||||
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Utils;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration.Databases;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Bit.Seeder.Migration.Models;
|
||||
namespace Bit.Seeder.Migration.Models;
|
||||
|
||||
public class DatabaseConfig
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Bit.Seeder.Migration.Models;
|
||||
namespace Bit.Seeder.Migration.Models;
|
||||
|
||||
public enum ImportStatus
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration.Reporters;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration.Reporters;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration.Reporters;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Bit.Seeder.Migration;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
|
||||
public static class DateTimeHelper
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Data;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
|
||||
/// <summary>
|
||||
/// Constants used throughout the DbSeeder utility for database operations.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
|
||||
@@ -6,8 +6,16 @@ public static class SecuritySanitizer
|
||||
{
|
||||
private static readonly string[] SensitiveFields =
|
||||
[
|
||||
"password", "passwd", "pwd", "secret", "key", "token",
|
||||
"api_key", "auth_token", "access_token", "private_key"
|
||||
"password",
|
||||
"passwd",
|
||||
"pwd",
|
||||
"secret",
|
||||
"key",
|
||||
"token",
|
||||
"api_key",
|
||||
"auth_token",
|
||||
"access_token",
|
||||
"private_key"
|
||||
];
|
||||
|
||||
public static string MaskPassword(string password)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Net.Sockets;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Renci.SshNet;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace Bit.Seeder.Migration.Utils;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Bit.Seeder.Migration;
|
||||
using Bit.Seeder.Migration;
|
||||
using Bit.Seeder.Migration.Databases;
|
||||
using Bit.Seeder.Migration.Models;
|
||||
using Bit.Seeder.Migration.Reporters;
|
||||
|
||||
Reference in New Issue
Block a user