text: # Django
  from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
  from django.contrib.auth.models import User
  # Local
  from bootstrap_modal_forms.mixins import PopRequestMixin, CreateUpdateAjaxMixin
  
  
  class CustomUserCreationForm(PopRequestMixin, CreateUpdateAjaxMixin,
                               UserCreationForm):
      class Meta:
          model = User
          fields = ['username', 'password1', 'password2']
  
  
  class CustomAuthenticationForm(AuthenticationForm):
      class Meta:
          model = User
          fields = ['username', 'password']
  