django-authtools provides several Form classes that mimic the forms in
django.contrib.auth.forms, but work better with
REQUIRED_FIELDS. These forms don’t require the
authtools.models.User class in order to work, they should work with any
User model that follows the
User class contract.
Basically the same as django.contrib.auth, but respects
This is the same form as
UserCreationForm, but with an added method,
clean_usernamewhich lowercases the username before saving. It is recommended that you use this form if you choose to use either the
CaseInsensitiveUsernameFieldModelBackendauthentication backend class.
This form is also available sa CaseInsensitiveEmailUserCreationForm for backwards compatibility.
A normal ModelForm that adds a
UserChangeForm, but adds a link to the admin change password form.
Basically the same as
django.contrib.auth.forms.PasswordResetForm, but checks the email address against the database and gives a friendly error message.
This form leaks user email addresses. Please refer to the view
It also provides a Widget class.
This is basically the same as django’s
ReadOnlyPasswordHashWidget, but it provides a less intimidating user interface. Whereas django’s Widget displays the password hash with it’s salt,
BetterReadOnlyPasswordHashWidgetsimply presents a string of asterisks.