Closed sjDCC closed 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
Thanks @briri
recaptcha.rb
hasn't been touched since Sep 30, 2013. Maybe Google has changed their Recaptcha API?
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.
@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?
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
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...
See https://dmponline.dcc.ac.uk/contact-us