Forms

Forms and validation code for user registration.

class django_facebook.forms.FacebookRegistrationFormUniqueEmail(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None)[source]

Some basic validation, adapted from django registration

clean()[source]

Verifiy that the values entered into the two password fields match. Note that an error here will end up in non_field_errors() because it doesn’t apply to a single field.

clean_email()[source]

Validate that the supplied email address is unique for the site.

clean_username()[source]

Validate that the username is alphanumeric and is not already in use.