mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-27 00:31:44 +01:00
CodeQL
This commit is contained in:
parent
c51971c298
commit
2162f5f964
@ -2,5 +2,10 @@
|
||||
|
||||
public interface ICaptchaVerifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Verify captcha token is valid
|
||||
/// </summary>
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
ValueTask<bool> Verify(string? token);
|
||||
}
|
@ -2,10 +2,14 @@
|
||||
|
||||
namespace VoidCat.Services.Captcha;
|
||||
|
||||
/// <summary>
|
||||
/// No captcha system is configured
|
||||
/// </summary>
|
||||
public class NoOpVerifier : ICaptchaVerifier
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public ValueTask<bool> Verify(string? token)
|
||||
{
|
||||
return ValueTask.FromResult(token == null);
|
||||
return ValueTask.FromResult(true);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user