Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CaptchaResponse.cs

using Newtonsoft.Json;

namespace Nop.Web.Framework.Security.Captcha;

/// 
/// Google reCAPTCHA response
/// 
public partial class CaptchaResponse
{
    #region Ctor

    public CaptchaResponse()
    {
        Errors = new List();
    }

    #endregion

    #region Properties

    /// 
    /// Gets or sets the action name for this request (important to verify)
    /// 
    [JsonProperty(PropertyName = "action")]

    public string Action { get; set; }

    [JsonProperty(PropertyName = "score")]
    public decimal Score { get; set; }

    /// 
    /// Gets or sets a value indicating whether validation is success
    /// 
    [JsonProperty(PropertyName = "success")]
    public bool IsValid { get; set; }

    /// 
    /// Gets or sets a date and time of the challenge load
    /// 
    [JsonProperty(PropertyName = "challenge_ts")]
    public DateTime? ChallengeDateTime { get; set; }

    /// 
    /// Gets or sets the hostname of the site where the reCAPTCHA was solved
    /// 
    [JsonProperty(PropertyName = "hostname")]
    public string Hostname { get; set; }

    /// 
    /// Gets or sets errors
    /// 
    [JsonProperty(PropertyName = "error-codes")]
    public List Errors { get; set; }

    #endregion
}