From 052a0387634136709b510e3ffe28614cd8ccfd38 Mon Sep 17 00:00:00 2001 From: JodanJodan Date: Sat, 2 Dec 2017 05:31:52 -0600 Subject: [PATCH] Add tabindexes to login elements (#420) Fixes issue with password managers (e.g. KeePass) tabbing to 'Forgot your password?' link instead of password field. --- nyaa/templates/login.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nyaa/templates/login.html b/nyaa/templates/login.html index a02cb75..1dc6637 100644 --- a/nyaa/templates/login.html +++ b/nyaa/templates/login.html @@ -12,7 +12,7 @@
- {{ render_field(form.username, class_='form-control', placeholder='Username', autofocus='') }} + {{ render_field(form.username, class_='form-control', placeholder='Username', autofocus='', tabindex='1') }}
@@ -32,7 +32,7 @@ {% endif%} - {{ form.password(title=form.password.description, class_='form-control') | safe }} + {{ form.password(title=form.password.description, class_='form-control', tabindex='2') | safe }} {% if form.password.errors %}
{% if form.password.errors|length < 2 %} @@ -54,7 +54,7 @@
- +