Re-implemented everything using ASP.NET. Changed some requests to use JSON instead of FORM data. Some work towards deleting the FIXMEGlobal instance. Auth is missing, XSRF does not work correctly.
26 lines
771 B
C#
26 lines
771 B
C#
namespace Duplicati.WebserverCore.Abstractions;
|
|
|
|
/// <summary>
|
|
/// A captcha provider
|
|
/// </summary>
|
|
public interface ICaptchaProvider
|
|
{
|
|
/// <summary>
|
|
/// Check if the captcha is solved
|
|
/// </summary>
|
|
/// <param name="token">The captcha token</param>
|
|
/// <param name="target">The captcha target</param>
|
|
/// <param name="answer">The captcha answer</param>
|
|
bool SolvedCaptcha(string token, string target, string answer);
|
|
/// <summary>
|
|
/// Create a captcha
|
|
/// </summary>
|
|
/// <param name="target">The captcha target</param>
|
|
string CreateCaptcha(string target);
|
|
/// <summary>
|
|
/// Get the captcha image
|
|
/// </summary>
|
|
/// <param name="token">The captcha token</param>
|
|
byte[] GetCaptchaImage(string token);
|
|
}
|