mirror of
https://github.com/bitwarden/server.git
synced 2025-04-29 08:42:19 -05:00
16 lines
497 B
C#
16 lines
497 B
C#
using Bit.Core.Context;
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Models.Business;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface ICaptchaValidationService
|
|
{
|
|
string SiteKey { get; }
|
|
string SiteKeyResponseKeyName { get; }
|
|
bool RequireCaptchaValidation(ICurrentContext currentContext, User user = null);
|
|
Task<CaptchaResponse> ValidateCaptchaResponseAsync(string captchResponse, string clientIpAddress,
|
|
User user = null);
|
|
string GenerateCaptchaBypassToken(User user);
|
|
}
|