<reponame>SebastiaanZ/minigigscyclingteam<gh_stars>0
"""Custom login form that sets the correct widget class attributes."""
from django import forms
from django.contrib.auth.forms import PasswordChangeForm
from django.utils.translation import gettext_lazy as _


class ChangePasswordForm(PasswordChangeForm):
    """Custom authentication form."""

    old_password = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )

    new_password1 = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )

    new_password2 = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )

"""Custom login form that sets the correct widget class attributes."""
from django import forms
from django.contrib.auth.forms import PasswordChangeForm
from django.utils.translation import gettext_lazy as _


class ChangePasswordForm(PasswordChangeForm):
    """Custom authentication form."""

    old_password = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )

    new_password1 = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )

    new_password2 = forms.CharField(
        label=_("<PASSWORD>"),
        strip=False,
        widget=forms.PasswordInput(attrs={'class': 'input is-rounded'}),
    )
Custom login form that sets the correct widget class attributes. Custom authentication form.