Misago implements simple framework for extending process of new user registration with additional checks.
When user submits registration form, within its
cleanmethod form calls functions defined in
Each function is called with following arguments:
request- current HttpRequest instance. You may use it to obtain IP address using form, via
cleaned_data- dict containing cleaned data. Use it too look up user's input that you wish to validate.
If function decides to interrup registration process and thus stop user from registering account, it can raise either
django.core.exceptions.PermissionDenied, or set errors on form via
This validation framework provides you with plenty of power, for example allowing you to write custom validator that queries database for number of registrations that occured for specific IP in last 8 hours, and banning both users and IP address via