Return to API Reference.
Form for creating a new user account.
Validates that the requested username and e-mail is not already in use. Also requires the password to be entered twice.
Validates 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.
Validate that the e-mail address is unique.
Validate that the username is alphanumeric and is not already in use. Also validates that the username is not listed in USERENA_FORBIDDEN_USERNAMES list.
Creates a new user and account. Returns the newly created user.
Form for creating a new user account but not needing a username.
This form is an adaptation of SignupForm. It’s used when USERENA_WITHOUT_USERNAME setting is set to True. And thus the user is not asked to supply an username, but one is generated for them. The user can than keep sign in by using their email.
Generate a random username before falling back to parent signup form
Add a Terms of Service button to the SignupForm.