From 6c300b7b311993531b3924826b99eb4b1ed4f83f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 27 Feb 2019 12:35:57 +0100 Subject: [PATCH] autofocus password field --- passbook/core/forms/authentication.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/passbook/core/forms/authentication.py b/passbook/core/forms/authentication.py index 0e614a0a0..84b6335a4 100644 --- a/passbook/core/forms/authentication.py +++ b/passbook/core/forms/authentication.py @@ -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' + }))