Table of Contents

Class CaptchaVerification

Namespace
NuvTools.Security.Captcha
Assembly
NuvTools.Security.dll

Result of verifying a CAPTCHA token against the provider.

public sealed record CaptchaVerification : IEquatable<CaptchaVerification>
Inheritance
CaptchaVerification
Implements
Inherited Members

Constructors

CaptchaVerification(bool, double)

Result of verifying a CAPTCHA token against the provider.

public CaptchaVerification(bool Valid, double Score)

Parameters

Valid bool

Whether the token is valid — not expired, not already consumed, and issued by the expected key.

Score double

Risk analysis (0.0 = likely a bot, 1.0 = likely a human). Only meaningful in score mode.

Properties

Score

Risk analysis (0.0 = likely a bot, 1.0 = likely a human). Only meaningful in score mode.

public double Score { get; init; }

Property Value

double

Valid

Whether the token is valid — not expired, not already consumed, and issued by the expected key.

public bool Valid { get; init; }

Property Value

bool