|
@@ -4,7 +4,7 @@ Validating Registrations
|
|
|
|
|
|
Misago implements simple framework for extending process of new user registration with additional checks.
|
|
Misago implements simple framework for extending process of new user registration with additional checks.
|
|
|
|
|
|
-When user submits registration form with valid data, this data is then passed to functions defined in `MISAGO_NEW_REGISTRATIONS_VALIDATORS` setting.
|
|
|
|
|
|
+When user submits registration form with valid data, this data is then passed to functions defined in ``MISAGO_NEW_REGISTRATIONS_VALIDATORS`` setting.
|
|
|
|
|
|
Each function is called with following arguments:
|
|
Each function is called with following arguments:
|
|
|
|
|
|
@@ -12,6 +12,6 @@ Each function is called with following arguments:
|
|
* ``username:`` username for which new account will be created.
|
|
* ``username:`` username for which new account will be created.
|
|
* ``email:`` e-mail address for which new account will be created.
|
|
* ``email:`` e-mail address for which new account will be created.
|
|
|
|
|
|
-If function decides to interrup registration process and thus stop user from registering account, it can raise `django.core.exceptions.PermissionDenied` exception, which will result in user receiving "403 Permission Denied" response from site, as well as having his IP address automatically banned for one day.
|
|
|
|
|
|
+If function decides to interrup registration process and thus stop user from registering account, it can raise ``django.core.exceptions.PermissionDenied`` exception, which will result in user receiving "403 Permission Denied" response from site, as well as having his IP address automatically banned for one day.
|
|
|
|
|
|
-If none of defined tests raised `PermissionDenied`, user account will be registered normally.
|
|
|
|
|
|
+If none of defined tests raised ``PermissionDenied``, user account will be registered normally.
|