DMPRoadmap / roadmap

DCC/UC3 collaboration for a data management planning tool
MIT License
104 stars 110 forks source link

Recaptcha broken on live DMPonline site #264

Closed sjDCC closed 7 years ago

sjDCC commented 7 years ago

See https://dmponline.dcc.ac.uk/contact-us

briri commented 7 years ago

This is likely just an issue with the server configuration in config/initializers/recaptcha.rb. @vyruss you should be able to just copy over what you have out on the live DMPonline instance

sjDCC commented 7 years ago

Thanks @briri

vyruss commented 7 years ago

recaptcha.rb hasn't been touched since Sep 30, 2013. Maybe Google has changed their Recaptcha API?

briri commented 7 years ago

You just need to set the following in your config/initializers/recaptcha.rb. Note the new params for the latest version of the gem

Recaptcha.configure do |config|
  config.site_key  = 'MY_SITE_KEY'
  config.secret_key = 'MY_SECRET_KEY'
  #config.proxy = 'http://someproxy.com:port'
end

FYI, recaptcha won't appear if you access the contact us page when you're logged in. You need to be logged out to see it.

vyruss commented 7 years ago

@briri that's the new syntax and it won't work with the recaptcha v0.4.0 gem on the live service. I wonder whether that got deprecated by Google and stopped working?

briri commented 7 years ago

Ah. didn't realize this was on the live service. Thought we were talking about your Roadmap test server. Yes, they may have deprecated it. Might be worth updating the gem

vyruss commented 7 years ago

Nah, the keys had expired after all for some reason (google recaptcha admin panel inactivity?). I replaced them with new ones and it works now...