autofocus password field

This commit is contained in:
Jens Langhammer 2019-02-27 12:35:57 +01:00
parent b726583084
commit 6c300b7b31

View file

@ -91,4 +91,7 @@ class SignUpForm(forms.Form):
class PasswordFactorForm(forms.Form):
"""Password authentication form"""
password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': _('Password')}))
password = forms.CharField(widget=forms.PasswordInput(attrs={
'placeholder': _('Password'),
'autofocus': 'autofocus'
}))