namespace Duplicati.WebserverCore.Abstractions; /// /// A captcha provider /// public interface ICaptchaProvider { /// /// Check if the captcha is solved /// /// The captcha token /// The captcha target /// The captcha answer bool SolvedCaptcha(string token, string target, string answer); /// /// Create a captcha /// /// The captcha target /// The captcha token and the answer (string Token, string? Answer) CreateCaptcha(string target); /// /// Get the captcha image /// /// The captcha token byte[] GetCaptchaImage(string token); /// /// Gets a value indicating whether the visual captcha is disabled /// bool VisualCaptchaDisabled { get; } }