mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: correct spelling of 'Verification' in PasteSettings and PasteController
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user