|Version 11 (modified by nicholasbs, 9 years ago) (diff)|
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.
If you have any issues, create a new ticket.
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 and has not been thoroughly assessed to ensure that it meets all use-case requirements. Suggestions are welcome.
For example, SimpleCaptchaPlugin uses this interface.
Originally developed at The Open Planning Project