Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use recaptcha shape in razor views after latest changes #17391

Open
giannik opened this issue Jan 23, 2025 · 4 comments
Open

Cannot use recaptcha shape in razor views after latest changes #17391

giannik opened this issue Jan 23, 2025 · 4 comments
Labels
Milestone

Comments

@giannik
Copy link
Contributor

giannik commented Jan 23, 2025

Using the new shape approach to enabling a recaptcha on a razor page does not work in the latest version. I added the following Shape tag helper in one of my views :

<shape type="ReCaptcha" language="@Orchard.CultureName()"/>

and got into an endless loop error until all threads were exhausted.

Changes described here :
https://github.com/OrchardCMS/OrchardCore/blob/main/src/docs/releases/3.0.0.md
Related pr #17229

@giannik giannik changed the title Cannot use recapture shape in razor views after latest changes Cannot use recaptcha shape in razor views after latest changes Jan 23, 2025
@giannik
Copy link
Contributor Author

giannik commented Jan 23, 2025

there is a duplicate tag declaration "captcha" here :

[HtmlTargetElement("captcha", Attributes = "language,onload", TagStructure = TagStructure.WithoutEndTag)]

is this on purpose ? @MikeAlhayek

@MikeAlhayek
Copy link
Member

no. But is it causing any issues?

@giannik
Copy link
Contributor Author

giannik commented Jan 23, 2025

if i keep only one declaration the endless loop goes away but then it renders :

<captcha language="en-US">  
</captcha>

so it doesnt resolve the tag halper.

@sebastienros sebastienros added this to the 3.0 milestone Jan 23, 2025
Copy link
Contributor

We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).

This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants