@@ -0,0 +1,17 @@
|
||||
namespace Api.Models.Settings
|
||||
{
|
||||
public sealed class CaptchaSettings
|
||||
{
|
||||
// "Recaptcha" for now (easy to extend later)
|
||||
public string Provider { get; set; } = "Recaptcha";
|
||||
|
||||
public string SecretKey { get; set; } = "";
|
||||
public string PublicKey { get; set; } = "";
|
||||
// Only relevant for reCAPTCHA v3 (score-based)
|
||||
public double MinimumScore { get; set; } = 0.5;
|
||||
|
||||
// Optional but recommended for v3: enforce expected action and/or hostname
|
||||
public string? ExpectedAction { get; set; }
|
||||
public string? ExpectedHostname { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user