Just add any extra script tags to your layout is it stops rendering, as you can see in the screenshot it start wrapping your script in the recaptcha tag/element and doesn't actually render it's scripts. If I remove all the custom script tags from everything including login, then it suddenly works, so would rather just make my own implementation cause I have no idea why it's this complicated just have a captcha.
Can't share code on this project, it's a very sensitive anonyous reporting application.
All well and good, but it does not work when you add extra scripts to your layout.
Still doesn't work in v8.1 build.
Just mangles the scripts section but doesn't actually inject the script:
Nothing wrong with the layout script section:
And the faulty tag on the login:
So yeah, pretty much going to rip this out and do it myself, can't seem to get the built-in recaptcha working at all no matter what I do...
I haven't tried the latest changes unfortunately, been busy on another project. Will give it a try this week though and respond so don't close this ticket just yet...
Thanks @maliming, will give that a try sometime today.
For other projects I've used https://github.com/BitArmory/ReCaptcha which also works well in .NET Core 3.0. Was going to replace things with that to get around the problem.
Not going to be an option, too much IP involved and the client would never agree to that.
Recaptcha was working in v6 and v7, after updating to v8 it stopped rendering it. What other debugging options do I have around the tag helpers?
Going to dig into this more tomorrow since they want it back (on registration at least) and currently it's open season.
Doesn't solve my problem. My tags remain as if the helper is not getting run at all. I've looked at the pull request and also remove the tag helper import, what else do I need to do to have them run?
Adding those tag helpers actually made things significantly worse... before deleing them, the login page actually breaks now.
This happens as a result of trying to disable it on the UI and the setting is still on, need to script the setting back off, hard clear the caches (memory and Redis since you can't get in to clear it).
Adding those files does not work and the tags remain after rendering.