mirror of
https://github.com/bitwarden/server
synced 2025-12-27 21:53:24 +00:00
22 lines
705 B
C#
22 lines
705 B
C#
using System.Threading.Tasks;
|
|
using Bit.Core.Context;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Core.Services
|
|
{
|
|
public class NoopCaptchaValidationService : ICaptchaValidationService
|
|
{
|
|
public string SiteKeyResponseKeyName => null;
|
|
public string SiteKey => null;
|
|
public bool RequireCaptchaValidation(ICurrentContext currentContext) => false;
|
|
|
|
public string GenerateCaptchaBypassToken(User user) => "";
|
|
public bool ValidateCaptchaBypassToken(string encryptedToken, User user) => false;
|
|
|
|
public Task<bool> ValidateCaptchaResponseAsync(string captchResponse, string clientIpAddress)
|
|
{
|
|
return Task.FromResult(true);
|
|
}
|
|
}
|
|
}
|