Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 5235a7c

Browse files
authored
Merge pull request #62 from lc6464/dependabot/npm_and_yarn/postcss-8.4.31
Bump postcss from 8.4.21 to 8.4.31
2 parents fda5172 + 8e12958 commit 5235a7c

3 files changed

Lines changed: 57 additions & 19 deletions

File tree

Controllers/Models/Register.cs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Text.Json.Serialization;
2+
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
23
using SimpleWebChatApplication.Services;
34

45
namespace SimpleWebChatApplication.Controllers.Models;
@@ -18,19 +19,36 @@ public readonly struct RegisterUserPostResponse {
1819
/// RegisterController 用户 Post 方法用户数据序列化模板。
1920
/// </summary>
2021
public readonly struct RegisterUserPostJsonSerializeTemplate {
21-
public RegisterUserPostJsonSerializeTemplate() => HMACKey = IGeneralTools.GenerateRandomData(16).ToArray();
22+
public RegisterUserPostJsonSerializeTemplate() => _hmacKey = IGeneralTools.GenerateRandomData(16).ToArray();
2223

2324
[JsonPropertyName("a")]
2425
public string? Account { get; init; }
2526

27+
private readonly byte[]? _passwordHash;
28+
2629
[JsonPropertyName("h")]
27-
public byte[]? PasswordHash { get; init; }
30+
public byte[]? PasswordHash {
31+
get => (byte[]?)_passwordHash?.Clone();
32+
init => _passwordHash = value;
33+
}
34+
35+
private readonly byte[]? _passwordSalt;
2836

2937
[JsonPropertyName("s")]
30-
public byte[]? PasswordSalt { get; init; }
38+
public byte[]? PasswordSalt {
39+
get => (byte[]?)_passwordSalt?.Clone();
40+
init => _passwordSalt = value;
41+
}
42+
43+
private readonly byte[] _hmacKey;
44+
45+
private byte[] GetHMACKey() => (byte[])_hmacKey.Clone();
3146

3247
[JsonPropertyName("k")]
33-
public byte[] HMACKey { get; init; }
48+
public byte[] HMACKey {
49+
get => GetHMACKey();
50+
init => _hmacKey = value;
51+
}
3452
}
3553

3654

SimpleWebChatApplication.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Platforms>x64;ARM64</Platforms>
@@ -16,11 +16,11 @@
1616
<ItemGroup>
1717
<PackageReference Include="LC6464.ASPNET.Http304" Version="1.1.0" />
1818
<PackageReference Include="LC6464.ASPNET.AddResponseHeaders" Version="1.3.0" />
19-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="7.0.9" />
20-
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="7.0.9" />
21-
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.5" />
22-
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
23-
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.1.5">
19+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="8.0.0" />
20+
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.0" />
21+
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlcipher" Version="2.1.7" />
22+
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
23+
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.3.2">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>

package-lock.json

Lines changed: 29 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)