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
I've tried both:
Umbraco Cms 10.5.1, Umbraco Forms 10.4.0 and uCaptcha 4.0.3, and
Umbraco Cms 11.1.0, Umbraco Forms 11.0.0 and uCaptcha 4.0.3
To Repeat
Add uCapture to any Umbraco Form. Use a "Visible" Turnstile dummy sitekey and the "Always passes" secret key (1x0000000000000000000000000000000AA). Ensure use of @Html.RenderUmbracoFormDependencies() in razor view. Navigate to form page, populate form and, if not auto-ticked, tick Turnstile captcha, then submit the form.
Result
On form submission it does postback, redisplays form with validation message against captcha: You must check the "I am human" checkbox to continue.
Expected Result
Pass Turnstile validation, allow form submission and redirect to/display completion message.
Analysis
Using the same test site, if I change uCapture appsettings to use hCapture test keys (with Provider=hCaptcha) it works ok, suggesting the problem is only with Turnstile.
There seems to be two problems on submission of Turnstile captchas.
When using the Turnstile dummy "Always passes" sitekey (1x00000000000000000000AA) it is possible to get the capture to pass by manually adding a script tag for umbracoforms.turnstile.js to the view, e.g : <script src="~/App_Plugins/our.umbraco.forms.ucaptcha/assets/umbracoforms.turnstile.js"></script>
In the package code it looks like it needs this code on line 84 of uCaptchaField.cs : javascriptFiles.Add($"~/App_Plugins/Our.Umbraco.Forms.uCaptcha/Assets/{uCaptchaConsts.Turnstile.LocalJsResource}");
When using the Turnstile dummy "Forces an interactive challenge & visible" sitekey (3x00000000000000000000FF), even with the above script is included, it always fails validation. Stepping through uCaptchaField.cs I can see context.Request.Form[verifyPostParameter] is always empty with this sitekey (it's populated with the "Always passes" sitekey).
The text was updated successfully, but these errors were encountered:
Versions
I've tried both:
Umbraco Cms 10.5.1, Umbraco Forms 10.4.0 and uCaptcha 4.0.3, and
Umbraco Cms 11.1.0, Umbraco Forms 11.0.0 and uCaptcha 4.0.3
To Repeat
Add uCapture to any Umbraco Form. Use a "Visible" Turnstile dummy sitekey and the "Always passes" secret key (1x0000000000000000000000000000000AA). Ensure use of
@Html.RenderUmbracoFormDependencies()
in razor view. Navigate to form page, populate form and, if not auto-ticked, tick Turnstile captcha, then submit the form.Result
On form submission it does postback, redisplays form with validation message against captcha: You must check the "I am human" checkbox to continue.
Expected Result
Pass Turnstile validation, allow form submission and redirect to/display completion message.
Analysis
Using the same test site, if I change uCapture appsettings to use hCapture test keys (with Provider=hCaptcha) it works ok, suggesting the problem is only with Turnstile.
There seems to be two problems on submission of Turnstile captchas.
<script src="~/App_Plugins/our.umbraco.forms.ucaptcha/assets/umbracoforms.turnstile.js"></script>
In the package code it looks like it needs this code on line 84 of uCaptchaField.cs :
javascriptFiles.Add($"~/App_Plugins/Our.Umbraco.Forms.uCaptcha/Assets/{uCaptchaConsts.Turnstile.LocalJsResource}");
context.Request.Form[verifyPostParameter]
is always empty with this sitekey (it's populated with the "Always passes" sitekey).The text was updated successfully, but these errors were encountered: