Modify

Opened 16 years ago

Last modified 7 years ago

#2897 new enhancement

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

Reported by: roadrunner Owned by:
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 (1)

captcha_patch.diff (3.0 KB) - added by roadrunner 16 years ago.
Patch to add captcha support to registration

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by roadrunner

Attachment: captcha_patch.diff added

Patch to add captcha support to registration

comment:1 Changed 16 years ago by Rob van der Linde

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

comment:2 in reply to:  description Changed 14 years ago by Steffen Hoffmann

Keywords: register SPAM prevention added
Owner: changed from Matt Good to Steffen Hoffmann
Summary: Patch to add captcha support[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.

comment:3 in reply to:  1 Changed 14 years ago by Steffen Hoffmann

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

comment:4 Changed 14 years ago by Steffen Hoffmann

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.

comment:5 Changed 12 years ago by Steffen Hoffmann

(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.

comment:6 Changed 12 years ago by Steffen Hoffmann

(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.

comment:7 Changed 7 years ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.