Skip to content

Commit

Permalink
side-effect: add autofocus on admin field
Browse files Browse the repository at this point in the history
  • Loading branch information
Glandos authored and almet committed Dec 10, 2022
1 parent 19f5f07 commit 9ccfc29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ihatemoney/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ class AuthenticationForm(FlaskForm):


class AdminAuthenticationForm(FlaskForm):
admin_password = PasswordField(_("Admin password"), validators=[DataRequired()])
admin_password = PasswordField(
_("Admin password"), validators=[DataRequired()], render_kw={"autofocus": True}
)
submit = SubmitField(_("Get in"))


Expand Down

0 comments on commit 9ccfc29

Please sign in to comment.