bread-and-pepper/django-userena — pull request #130 by derks (2011-12-07 07:04:31+00:00)
Title: Moderated Registration Feature - Issue #81

I've implemented a moderated registration feature. By default all functionality is the same, however there is now the capability to set the following in your settings.py:

USERENA_MODERATED_REGISTRATION = True
USERENA_ACTIVATION_REJECTED = 'ACTIVATION_REJECTED'
USERENA_PENDING_MODERATION = 'PENDING_MODERATION'

With moderated registration enabled, the following happens:

* User registers
* Receives activation email, and clicks activation link
* Gets msg that they are activated, but pending administrators approval
* The admin logs into the django admin, clicks 'Users', selects user, performs the 'Approve user registration' or 'Reject user registration' action from the drop down.
* An approval or rejection email is sent accordingly

This is an extremely important feature for us during pilot periods where we want something online publicly but only want specific people able to fully register and login. I did my best to follow Userena's coding style/layout/etc. If there is anything you are questionable about please let me know... however I feel it is a very sane and simple solution.

Thanks!