This project is read-only.
8
Vote

useSsl parameter doesn't work.

description

useSsl parameter doesn't work. Checked sources and see that useSsl parameter doesn't provided to RecaptchaHtmlHelper and RecaptchaHtmlHelper always get info from Request.Url.AbsoluteUri.

file attachments

comments

andrewhelgeland wrote Sep 2, 2014 at 10:34 PM

If it helps any, here's what I did to make this work on SSL:
@Html.Raw(Html.Recaptcha("public_key", Recaptcha.Web.RecaptchaTheme.Clean, useSsl: true).ToHtmlString().Replace("http", "https"))
Can we get this fixed sometime soon?

wrote Sep 2, 2014 at 10:34 PM

noffer wrote Sep 23, 2014 at 7:34 AM

Nice workaround! saved my butt!

wrote Sep 23, 2014 at 7:34 AM

vipergtsrz wrote Oct 15, 2014 at 1:43 PM

I noticed this error today on our server with https.

The thing is, after looking at the code, there is actually no reason to even have a variable called "useSsl".

Instead of having an if statement where one has http:// and the other has https:// you just have to put // and it will automatically work on whatever the current page is loaded in...

wrote Oct 28, 2014 at 5:12 PM

wrote Nov 8, 2014 at 5:17 PM

wrote Dec 11, 2014 at 8:36 PM

wrote Dec 19, 2014 at 7:49 PM

wrote Dec 19, 2014 at 7:51 PM

timi2shoes wrote Dec 19, 2014 at 7:51 PM

I compiled a new version with the ability to modify use ssl.

Sample usage
<cc1:Recaptcha ID="Recaptcha1" UseSSL="true" PublicKey="-------" PrivateKey="-----" runat="server" />

kokosx wrote Dec 30, 2014 at 3:15 PM

hi timi2shoes do you have upload the new version with the ability to modify use ssl?

timi2shoes wrote Jan 16, 2015 at 3:48 PM

Yes, download the File Attachment at the top of the screen "Recaptcha.Web.dll"

and use

<cc1:Recaptcha ID="Recaptcha1" UseSSL="true" PublicKey="-------" PrivateKey="-----" runat="server" />

I asked for permission to join this project so I can upload my changes but my request is still pending.

wrote Apr 28, 2015 at 8:30 AM