From 697ec384f8a0d3d86eb7e523595ddda3cda256b4 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 6 Feb 2026 22:11:37 -0500 Subject: [PATCH] fix: correct spelling of 'Verification' in PasteSettings and PasteController --- SharpbinV3.Server/Controllers/PasteController.cs | 4 ++-- SharpbinV3.Server/Settings/PasteSettings.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SharpbinV3.Server/Controllers/PasteController.cs b/SharpbinV3.Server/Controllers/PasteController.cs index 20bcd20..6665c9f 100644 --- a/SharpbinV3.Server/Controllers/PasteController.cs +++ b/SharpbinV3.Server/Controllers/PasteController.cs @@ -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 }); } } diff --git a/SharpbinV3.Server/Settings/PasteSettings.cs b/SharpbinV3.Server/Settings/PasteSettings.cs index ffbd988..9304b99 100644 --- a/SharpbinV3.Server/Settings/PasteSettings.cs +++ b/SharpbinV3.Server/Settings/PasteSettings.cs @@ -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)]