Ticket #2897 (new enhancement)

Opened 5 years ago

Last modified 10 months ago

[patch] Add captcha (PyCAPTCHA) support for new user registration

Reported by: roadrunner Assigned to: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: register SPAM prevention
Cc: Trac Release: 0.10

Description

This is similar to #2707 in that it add a captcha to the registration page, but it uses PyCAPTCHA instead. Also, this patch is for trac 0.10 .

Attachments

captcha_patch.diff (3.0 kB) - added by roadrunner on 04/11/08 11:32:01.
Patch to add captcha support to registration

Change History

04/11/08 11:32:01 changed by roadrunner

  • attachment captcha_patch.diff added.

Patch to add captcha support to registration

(follow-up: ↓ 3 ) 06/22/08 14:20:14 changed by robvdl

Thanks, this patch works a charm for trac 0.10

Might want to mention you need to add this to trac.ini

[account-manager] use_captcha = true

Other than that, great patch, simple and effective

(in reply to: ↑ description ) 10/04/10 20:39:02 changed by hasienda

  • owner changed from mgood to hasienda.
  • keywords set to register SPAM prevention.
  • summary changed from Patch to add captcha support to [patch] Add captcha (PyCAPTCHA) support for new user registration.

Replying to roadrunner:

This is similar to #2707 in that it add a captcha to the registration page, but it uses PyCAPTCHA instead. Also, this patch is for trac 0.10 .

Thanks for your contribution. I'll come back later and have a closer look, on how to do even a concurrent implementation together with the other captcha support.

(in reply to: ↑ 1 ) 10/04/10 20:42:19 changed by hasienda

Replying to robvdl:

[...] Might want to mention you need to add this to trac.ini

Right, but to be more visible, do it with proper wiki formatting like so:

 [account-manager]
 use_captcha = true

10/04/10 23:48:40 changed by hasienda

There is a SimpleCaptchaPlugin for captcha (Skimpy Gimpy) support as well. Cite from the SimpleCaptchaPlugin wiki page:

The plugin requires that AccountManagerPlugin has been patched to include an IRegistrationConfirmation extension point by the RegistrationConfirmationPatch.

08/10/12 00:06:25 changed by hasienda

(In [11917]) AccountManagerPlugin: Add interface for configurable user registration procedure, refs #874, #2707, #2897, #4651, #5295, #7577, #8076.

The current user registration process lacks flexibility, as can be witnessed by the history of one of the oldest still pending tickets for this plugin: #874.

08/11/12 00:34:20 changed by hasienda

(In [11923]) AccountManagerPlugin: Finish registration check rewrite, refs #874, #2707, #2897, #4651, #5295, #7577, #8076.

Now moving check execution into AccountManager, and _create_user() is gone, replaced by more clearly structured and modularized code.

Registration checking for requests from the admin panel is re-activated and minor improvements related to RegistrationError? processing done too.

Note: The test, that detected admin requests to skip additional checking of existing permissions for each new username, has been done differently. In the future each check has to decide on its own, like this is done in the UsernamePermCheck now.


Add/Change #2897 ([patch] Add captcha (PyCAPTCHA) support for new user registration)




Change Properties
Action