I tried to use ReCaptcha into a Razor function and although I can display the captcha text, retrieve it and validate it when the form is submitted I have a problem when the Composite page loads for the first time where captcha is not shown until the user refreshes the page.
Just follow this guide http://www.asp.net/web-pages/tutorials/security/using-a-catpcha-to-prevent-automated-programs-(bots)-from-using-your-aspnet-web-site. Instead on placing your Public and Private keys in _AppStart.cshtml as the guide suggets, put them in Global.asax Application_Start event and you are good to go.
You might experience the same problem as me and that is you won't see the captcha on page first load but you will see it if you refresh. I suspect it has something to do with the <noscript> and <iframe> tags that are generated but I hope someone from Composite can have a look at it.
Just follow this guide http://www.asp.net/web-pages/tutorials/security/using-a-catpcha-to-prevent-automated-programs-(bots)-from-using-your-aspnet-web-site. Instead on placing your Public and Private keys in _AppStart.cshtml as the guide suggets, put them in Global.asax Application_Start event and you are good to go.
You might experience the same problem as me and that is you won't see the captcha on page first load but you will see it if you refresh. I suspect it has something to do with the <noscript> and <iframe> tags that are generated but I hope someone from Composite can have a look at it.