openlab / OGDI-DataLab

Open Government Data Initiative
http://ogdi.codeplex.com
Microsoft Public License
57 stars 17 forks source link

Recapcha keys don't take #15

Closed nikg closed 12 years ago

nikg commented 12 years ago

Setting RecaptchaPrivateKey & RecaptchaPublicKey values doesn't "take" and causes errors. Keys set in:

\DataBrowser\DataBrowser.WebRole\Web.Release.config \DataBrowser\DataBrowser.WebRole\Web.config \DataBrowser\DataBrowser.Cloud\ServiceConfiguration.Cloud.cscfg \DataBrowser\DataBrowser.Cloud\ServiceConfiguration.Local.cscfg

End-result the error below:

Source File: e:\sitesroot\0\Views\Shared\Rates.ascx Line: 72

Line 70: Line 71: function ShowRecaptcha() { Line 72: Recaptcha.create('<%= Ogdi.Azure.Configuration.OgdiConfiguration.GetValue("RecaptchaPupblicKey")%>', "RecaptchaDiv", { callback: Recaptcha.focus_response_field }); Line 73: document.getElementById('RecaptchaButtons').style.display = "block"; Line 74: }

nikg commented 12 years ago

Found the error -- misspelled key names.

Search for:
RecaptchaPupblicKey

Replace with: RecaptchaPublicKey

SyntaxC4 commented 12 years ago

I have this fix awaiting a pull request, There are a few issues which need to be resolved before I update the code base.

Thanks for investigating this error, i will update the code shortly

SyntaxC4 commented 12 years ago

This issue was resolved 8 days ago. Closing down Issue