clean
method form calls functions defined in MISAGO_NEW_REGISTRATIONS_VALIDATORS
setting.request
- current HttpRequest instance. You may use it to obtain IP address using form, via request.user_ip
attribute.cleaned_data
- dict containing cleaned data. Use it too look up user's input that you wish to validate.add_error
- None
or add_error
function accepting fieldname and list of errors. Allows you to set validation errors on field.django.core.exceptions.ValidationError
, django.core.exceptions.PermissionDenied
, or set errors on form via form.add_error
utility.ban_ip
or ban_user
utils from misago.users.bans
module.