void.cat/VoidCat/Services/Captcha/NoOpVerifier.cs

16 lines
319 B
C#
Raw Normal View History

2022-03-11 15:59:08 +00:00
using VoidCat.Services.Abstractions;
namespace VoidCat.Services.Captcha;
2022-07-25 19:20:14 +00:00
/// <summary>
/// No captcha system is configured
/// </summary>
2022-03-11 15:59:08 +00:00
public class NoOpVerifier : ICaptchaVerifier
{
2022-07-25 19:20:14 +00:00
/// <inheritdoc />
2022-03-11 15:59:08 +00:00
public ValueTask<bool> Verify(string? token)
{
2022-07-25 19:20:14 +00:00
return ValueTask.FromResult(true);
2022-03-11 15:59:08 +00:00
}
2022-07-25 19:38:58 +00:00
}