Skip to content

Commit bd3df95

Browse files
authored
Merge pull request #5 from jgdevlabs/dev
Added V3 response properties
2 parents c7dffc2 + 91a235d commit bd3df95

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/ReCaptcha/Models/ValidationResponse.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ public class ValidationResponse
1717
[JsonProperty(PropertyName = "success")]
1818
public bool Success { get; set; }
1919

20+
/// <summary>
21+
/// The score for this request (0.0 - 1.0). Only used with reCAPTCHA V3.
22+
/// </summary>
23+
[JsonProperty(PropertyName = "score")]
24+
public double? Score { get; set; } = null;
25+
26+
/// <summary>
27+
/// The action name for this request (important to verify). Only used with reCAPTCHA V3.
28+
/// </summary>
29+
[JsonProperty(PropertyName = "action")]
30+
public string? Action { get; set; } = null;
31+
2032
/// <summary>
2133
/// Timestamp of the challenge load.
2234
/// </summary>

0 commit comments

Comments
 (0)