Registration Confirmation Patch for AccountManagerPlugin


This is a patch for AccountManagerPlugin that adds an IRegistrationConfirmation extension point that enables pluggable verifications for new user registration.

Bugs/Feature Requests

Existing bugs and feature requests for RegistrationConfirmationPatch are here.

If you have any issues, create a new ticket.


The patch can be downloaded here: attachment:RegistrationConfirmationPatch.diff


The IRegistrationConfirmation extension point this patch provides makes it easy to add things such as CAPTCHAs and e-mail confirmation to AccountManagerPlugin's user registration form.

The interface provided by IRegistrationConfirmation includes two methods.

class IRegistrationConfirmation(Interface):
    """An interface for receiving notification before and after the new user                                                                                                                                     
    registration form has been submitted.                                                                                                                                                                        

    def pre_registration(self, req):
        """Returns the markup to be added to the registration form                                                                                                                                               

    def verify_registration(self, req):
        """Returns an error message if confirmation fails, or None on success                                                                                                                                    

This is a very generalized interface but it has not been thoroughly assessed to ensure that it meets all use-case requirements. Suggestions are welcome.

For example, SimpleCaptchaPlugin uses this interface.

Recent Changes

3870 by nicholasbs on 2008-06-19 21:06:53
New hack RegistrationConfirmationPatch, created by nicholasbs


Originally developed at The Open Planning Project

Author: nicholasbs
Contributors: k0s

Last modified 5 years ago Last modified on Mar 4, 2017, 6:23:16 AM

Attachments (2)

Download all attachments as: .zip