Browse Source
Add autofocus attribute to the TOTP input field
Fixes: #726
pull/733/head
Pēteris Caune
1 year ago
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
1 changed files with
2 additions and
1 deletions
-
templates/accounts/login_totp.html
|
@ -19,7 +19,8 @@ |
|
|
pattern="[0-9]{6}" |
|
|
pattern="[0-9]{6}" |
|
|
title="6-digit code" |
|
|
title="6-digit code" |
|
|
placeholder="6-digit code" |
|
|
placeholder="6-digit code" |
|
|
class="form-control input-lg" /> |
|
|
|
|
|
|
|
|
class="form-control input-lg" |
|
|
|
|
|
autofocus /> |
|
|
{% if form.code.errors %} |
|
|
{% if form.code.errors %} |
|
|
<div class="help-block"> |
|
|
<div class="help-block"> |
|
|
{{ form.code.errors|join:"" }} |
|
|
{{ form.code.errors|join:"" }} |
|
|