You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ReCaptcha/TagHelpers/RecaptchaInvisibleTagHelper.cs
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@
10
10
namespaceGriesoft.AspNetCore.ReCaptcha.TagHelpers
11
11
{
12
12
/// <summary>
13
-
/// Add a invisible reCAPTCHA div element to your page. Or add a 're-invisible' attribute to a button element to bind the invisible captcha to a button.
13
+
/// Add a invisible reCAPTCHA div element to your page. You may also use it by adding a 're-invisible' attribute to a button
14
+
/// element which will automatically bind the challenge to it.
14
15
/// </summary>
15
16
/// <remarks>
16
17
/// The <see cref="FormId"/> is required. With the exception that you set a <see cref="Callback"/> instead.
@@ -66,12 +78,13 @@ public RecaptchaInvisibleTagHelper(IOptionsMonitor<RecaptchaSettings> settings,
66
78
67
79
/// <summary>
68
80
/// The id of the form that will be submitted after a successful reCAPTCHA challenge.
69
-
/// This does only apply when not specifying a custom <see cref="Callback"/>.
70
81
/// </summary>
82
+
/// <remarks>This does only apply when not specifying a <see cref="Callback"/>.</remarks>
71
83
publicstring?FormId{get;set;}
72
84
73
85
/// <summary>
74
-
/// Set the name of your callback function, executed when the user submits a successful response. The "g-recaptcha-response" token is passed to your callback.
86
+
/// Set the name of your callback function, which is called when the reCAPTCHA challenge was successful.
87
+
/// A "g-recaptcha-response" token is added to your callback function parameters for server-side verification.
Copy file name to clipboardExpand all lines: src/ReCaptcha/TagHelpers/RecaptchaTagHelper.cs
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,24 @@
8
8
namespaceGriesoft.AspNetCore.ReCaptcha.TagHelpers
9
9
{
10
10
/// <summary>
11
-
/// A tag helper which adds a Google reCAPTCHA div element to your page.
11
+
/// A tag helper which adds a Google reCAPTCHA check box to your page.
12
12
/// </summary>
13
+
/// <remarks>
14
+
/// If the reCAPTCHA element is outside of the form, the response token is not included in your form which will result in response verification failure.
15
+
/// This can be prevented by either placing the reCAPTCHA inside your form or by using a callback function which will add the token to your form after the
0 commit comments