fix: correct spelling of 'Verification' in PasteSettings and PasteController

This commit is contained in:
2026-02-06 22:11:37 -05:00
parent 4917180624
commit 697ec384f8
2 changed files with 3 additions and 3 deletions
@@ -46,7 +46,7 @@ namespace SharpbinV3.Server.Controllers
if (System.Text.Encoding.UTF8.GetByteCount(content) > _pasteSettings.MaxPasteSizeInBytes)
return BadRequest(new { success = false, message = $"Paste size exceeds the maximum allowed size of {_pasteSettings.MaxPasteSizeInBytes} bytes." });
if (_pasteSettings.RequiresVerfication && !await _verificationService.VerifyAsync(new VerificationContext
if (_pasteSettings.RequiresVerification && !await _verificationService.VerifyAsync(new VerificationContext
{
Token = token,
Ip = HttpContext.GetRequestIP()
@@ -427,7 +427,7 @@ namespace SharpbinV3.Server.Controllers
],
MaxTitleLength = _pasteSettings.MaxTitleLength,
MaxPasteSize = _pasteSettings.MaxPasteSizeInBytes,
RequiresVerification = _pasteSettings.RequiresVerfication
RequiresVerification = _pasteSettings.RequiresVerification
});
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ namespace SharpbinV3.Server.Settings
public int MaxTitleLength { get; set; } = 500;
public int MaxPasteSizeInBytes { get; set; } = 1_048_576; // 1 MB
public bool EnablePasteCompression { get; set; } = true;
public bool RequiresVerfication { get; set; } = true;
public bool RequiresVerification { get; set; } = true;
[Required, MinLength(32), MaxLength(128)]
public string View_HMAC_Secret { get; set; } = string.Empty;
[MinLength(32), MaxLength(128)]