Show / Hide Table of Contents

Class RecaptchaValidatorBase

Inheritance
object
RecaptchaValidatorBase
RecaptchaValidatorV2
RecaptchaValidatorV3
Implements
IRecaptchaValidator
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Account.Public.Web.Security.Recaptcha
Assembly: Volo.Abp.Account.Pro.Public.Web.dll
Syntax
public abstract class RecaptchaValidatorBase : IRecaptchaValidator

Constructors

RecaptchaValidatorBase(IHttpContextAccessor, IStringLocalizer<AccountResource>, IJsonSerializer)

Declaration
public RecaptchaValidatorBase(IHttpContextAccessor httpContextAccessor, IStringLocalizer<AccountResource> stringLocalizer, IJsonSerializer jsonSerializer)
Parameters
Type Name Description
IHttpContextAccessor httpContextAccessor
IStringLocalizer<AccountResource> stringLocalizer
IJsonSerializer jsonSerializer

Fields

RecaptchaResponseKey

Declaration
public const string RecaptchaResponseKey = "g-recaptcha-response"
Field Value
Type Description
string

Properties

HttpContextAccessor

Declaration
protected IHttpContextAccessor HttpContextAccessor { get; }
Property Value
Type Description
IHttpContextAccessor

JsonSerializer

Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Type Description
IJsonSerializer

Logger

Declaration
public ILogger<RecaptchaValidatorBase> Logger { get; }
Property Value
Type Description
ILogger<RecaptchaValidatorBase>

StringLocalizer

Declaration
protected IStringLocalizer<AccountResource> StringLocalizer { get; }
Property Value
Type Description
IStringLocalizer<AccountResource>

Methods

ValidateAsync(string)

Declaration
public abstract Task ValidateAsync(string captchaResponse)
Parameters
Type Name Description
string captchaResponse
Returns
Type Description
Task

Implements

IRecaptchaValidator
In this article
Back to top Powered by Volosoft