Ticket #2707 (new enhancement)

Opened 10 months ago

Last modified 7 months ago

Patch for adding ReCaptcha support

Reported by: ghaering Assigned to: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: spam captcha
Cc: Trac Release: 0.11

Description

Despite having the AccountManager plugin installed, my Trac was getting spammed.

So I added support for requiring a captcha when registering a new account.

I'm attaching my current code. If you're interested, I can clean it up and add documentation for a better patch :-)

Attachments

recaptcha_patch.dif (2.6 kB) - added by ghaering on 03/09/08 07:46:56.
Patch for adding ReCaptcha? support

Change History

03/09/08 07:46:56 changed by ghaering

  • attachment recaptcha_patch.dif added.

Patch for adding ReCaptcha? support

04/06/08 22:07:03 changed by league@contrapunctus.net

  • release changed from 0.10 to 0.11.

This appeared to work very well for me so far, with just some documentation caveats: (1) it's a patch against trunk/ (0.11), not 0.10. And (2), the python recaptcha interface I found (1.0.1) was broken and wouldn't import. To fix that, add "recaptcha" before "recaptcha.client" to the package list in its setup.py. I recommend merging this into trunk.

06/17/08 04:44:10 changed by tekknokrat

works for me too, all you need for this patch working in account-manager is

1. apply the patch and install account-manager

2. download code part

3. extract somewhere and change the import rules like posted above

4. install with python setup.py install; bdist_egg wont work ootb; reload apache2

5. adapt the config in account-manager

[account-manager]
use_recaptcha = true
recaptcha_public_key = 
recaptcha_private_key = 

(you need to sign-on at http://recaptcha.net for getting the keys)

hope this helps someone


Add/Change #2707 (Patch for adding ReCaptcha support)




Change Properties
Action