Skip to content

Commit

Permalink
Fix DeepSource Problems
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Nov 30, 2023
1 parent 07f9f6d commit ffa98ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Controllers/Models/Register.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
using SimpleWebChatApplication.Services;

namespace SimpleWebChatApplication.Controllers.Models;
Expand Down Expand Up @@ -41,9 +42,11 @@ public byte[]? PasswordSalt {

private readonly byte[]? _hmacKey;

private byte[]? GetHMACKey() => (byte[]?)_hmacKey?.Clone();

[JsonPropertyName("k")]
public byte[]? HMACKey {
get => (byte[]?)_hmacKey!.Clone();
get => GetHMACKey();
init => _hmacKey = value;
}
}
Expand Down

0 comments on commit ffa98ff

Please sign in to comment.