/usr/share/redmine/plugins/redmine_recaptcha/init.rb is in redmine-plugin-recaptcha 0.1.0+git20121018-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # Rails plugin initialization.
require 'recaptcha'
require 'net/http'
require 'recaptcha/rails'
require 'redmine'
Rails.configuration.to_prepare do
require_dependency 'recaptcha/client_helper'
require_dependency 'client_helper_patch'
Recaptcha::ClientHelper.send(:include, ClientHelperPatch)
require_dependency 'account_controller'
require_dependency 'account_controller_patch'
AccountController.send(:include, AccountControllerPatch)
end
Redmine::Plugin.register :redmine_recaptcha do
name 'reCAPTCHA for user self registration'
author 'Shane StClair'
description 'Adds a recaptcha to the user self registration screen to combat spam'
version '0.1.0'
url 'http://github.com/srstclair/redmine_recaptcha'
#requires_redmine :version_or_higher => '0.9.0'
settings :default => {
'recaptcha_private_key' => '',
'recaptcha_public_key' => ''
}, :partial => 'settings/redmine_recaptcha'
end
|