authentication.py 517 B

12345678910111213141516171819202122232425
  1. from django.contrib.auth.forms import (
  2. AuthenticationForm,
  3. PasswordChangeForm as DjangoPasswordChangeForm,
  4. )
  5. from utilities.forms import BootstrapMixin
  6. __all__ = (
  7. 'LoginForm',
  8. 'PasswordChangeForm',
  9. )
  10. class LoginForm(BootstrapMixin, AuthenticationForm):
  11. """
  12. Used to authenticate a user by username and password.
  13. """
  14. pass
  15. class PasswordChangeForm(BootstrapMixin, DjangoPasswordChangeForm):
  16. """
  17. This form enables a user to change his or her own password.
  18. """
  19. pass