mirror of
https://github.com/bitwarden/server
synced 2026-01-15 06:53:26 +00:00
Fix lint on main (#6835)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Bit.Core.Entities;
|
||||
using System.Globalization;
|
||||
using Bit.Core.Entities;
|
||||
using Bit.Core.Enums;
|
||||
using Bit.Core.Utilities;
|
||||
using Bit.RustSDK;
|
||||
@@ -77,7 +78,7 @@ public class UserSeeder(RustSdkService sdkService, IPasswordHasher<Bit.Core.Enti
|
||||
{ expectedUserData.Email, MangleEmail(expectedUserData.Email) },
|
||||
{ expectedUserData.Id.ToString(), user.Id.ToString() },
|
||||
{ expectedUserData.Kdf.ToString(), user.Kdf.ToString() },
|
||||
{ expectedUserData.KdfIterations.ToString(), user.KdfIterations.ToString() }
|
||||
{ expectedUserData.KdfIterations.ToString(CultureInfo.InvariantCulture), user.KdfIterations.ToString(CultureInfo.InvariantCulture) }
|
||||
};
|
||||
if (expectedUserData.Key != null)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Bit.Seeder;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Bit.Seeder;
|
||||
|
||||
/// <summary>
|
||||
/// Helper for generating unique identifier suffixes to prevent collisions in test data.
|
||||
@@ -12,7 +14,7 @@ public class MangleId
|
||||
public MangleId()
|
||||
{
|
||||
// Generate a short random string (6 char) to use as the mangle ID
|
||||
Value = Random.Shared.NextInt64().ToString("x").Substring(0, 8);
|
||||
Value = Random.Shared.NextInt64().ToString("x", CultureInfo.InvariantCulture).Substring(0, 8);
|
||||
}
|
||||
|
||||
public override string ToString() => Value;
|
||||
|
||||
Reference in New Issue
Block a user