diff --git a/AspNetCore.ReCaptcha/ReCaptchaGenerator.cs b/AspNetCore.ReCaptcha/ReCaptchaGenerator.cs index 8bec284..e5dd8e6 100644 --- a/AspNetCore.ReCaptcha/ReCaptchaGenerator.cs +++ b/AspNetCore.ReCaptcha/ReCaptchaGenerator.cs @@ -62,12 +62,12 @@ public static IHtmlContent ReCaptchaV3(Uri baseUrl, string siteKey, string actio content.AppendHtml(@$""); content.AppendFormat(@"", baseUrl, siteKey, language); content.AppendHtml(""); content.AppendLine(); diff --git a/Samples/AspNetCore.ReCaptcha.Net60/Pages/Contact.cshtml b/Samples/AspNetCore.ReCaptcha.Net60/Pages/Contact.cshtml index 256cfb5..623b8de 100644 --- a/Samples/AspNetCore.ReCaptcha.Net60/Pages/Contact.cshtml +++ b/Samples/AspNetCore.ReCaptcha.Net60/Pages/Contact.cshtml @@ -59,3 +59,41 @@ function submitForm() { } + +
+
+ +
+ + +
+ +
+ + +
+ +
+ @switch (ReCaptchaSettings.Value.Version) + { + case ReCaptchaVersion.V2: + // Optionally override language of the recaptcha + // @Html.ReCaptcha(language: "en") + + break; + case ReCaptchaVersion.V2Invisible: + + break; + case ReCaptchaVersion.V3: + + break; + } +
+ + @if (ReCaptchaSettings.Value.Version != ReCaptchaVersion.V2Invisible) + { +
+ +
+ } +