wiki:RecaptchaRegisterPlugin

Version 10 (modified by mitar, 4 years ago) (diff)

--

Recaptcha Register Plugin

Description

This hack adds a reCAPTCHA that the user must pass before registering. You must have the AccountManagerPlugin installed.

Bugs/Feature Requests

Existing bugs and feature requests for RecaptchaRegisterPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out RecaptchaRegisterPlugin from here using Subversion, or browse the source with Trac.

Fork: I have made a small fork on Bitbucket with some improvements/fixes. Feel free to suggest new.

Usage

Install the Account Manager plugin

Please see AccountManagerPlugin page. Make sure you have disabled the RegistrationModule, since you'll be using this registration instead.

Install the recaptcha python module

RecaptchaRegisterPlugin depends on this module. Make sure you install it. If not installed, then trac will not show the RecaptchaRegisterPlugin, and will only show an error if you setup trac's logging.

easy_install recaptcha_client

Install this plugin

easy_install http://trac-hacks.org/svn/recaptcharegisterplugin/0.11

Setup reCAPTCHA

You need to make an account at http://recaptcha.net/ to receive your public and private keys.

Edit your conf/trac.ini file and add these lines, including your public and private reCAPTCHA keys:

[components]
recaptcharegister.* = enabled

[recaptcha]
public_key = 
private_key =

That should be it! Email me if you have problems.

About

This plugin is being developed for USLA tracs, a service by and for the Free Software Users of Argentina.

It is loosely based on the work of TracRecaptchaPlugin, so it's GPL licensed as well.

Recent Changes

[9846] by rjollos on 2011-02-10 20:18:57
Adding 0.10 branch to repository. Fixes #5726.
[5064] by s0undt3ch on 2008-12-26 20:04:02
req.args.args -> req.args.get
[4944] by s0undt3ch on 2008-12-03 18:29:58
New version of the RecaptchaRegisterPlugin.
It no longer requires one to disable the AccountManagerPlugin registration module.
It no longer provides it's own template, it's not necessary.
It's now also fully configurable on the admin panel under the AccountManagerPlugin configuration options.
New options introduced:

  • lang so that an admin can configure the language for the reCAPTCHA form(this introduces the option for the auto language selection based on user preferences for trac 0.12).

Also, if a Trac admin has not yet configured the reCAPTCHA keys, a link to the correct reCAPTCHA page to generate a new "key pair" will be shown which will also include the current domain plus a name of this plug so that reCPATCHA can track usage statistics of the several plugins there are.

Author/Contributors

Author: alecu
Contributors: