18 lines
611 B
C#
18 lines
611 B
C#
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; }
|
|
}
|
|
}
|