wiki:RecaptchaRegisterPlugin

Version 16 (modified by figaro, 9 years ago) (diff)

Cosmetic changes, tagged with license

Recaptcha Register Plugin

Description

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

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.

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

Bugs/Feature Requests

Existing bugs and feature requests for RecaptchaRegisterPlugin are here.

If you have any issues, create a new ticket.

defect

6 / 10

enhancement

2 / 3

Download

Download the zipped source from [download:recaptcharegisterplugin here].

Source

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

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. If it is 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 =

Recent Changes

9846 by rjollos on 2011-02-10 19:18:57
Adding 0.10 branch to repository. Fixes #5726.
5064 by s0undt3ch on 2008-12-26 19:04:02
req.args.args -> req.args.get
4944 by s0undt3ch on 2008-12-03 17: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.

(more)

Author/Contributors

Author: alecu
Maintainer: Alejandro J. Cura
Contributors: