From 4c4c4a81b8ffd0032653bc9bb97bf8d5b2502dd3 Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 1 Jan 2020 23:52:25 +0100 Subject: [PATCH] autofocus mfa token input --- app/auth/templates/auth/mfa.html | 2 +- app/dashboard/templates/dashboard/mfa_cancel.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/auth/templates/auth/mfa.html b/app/auth/templates/auth/mfa.html index 6401e164..650d8dad 100644 --- a/app/auth/templates/auth/mfa.html +++ b/app/auth/templates/auth/mfa.html @@ -23,7 +23,7 @@ Authy) here - {{ otp_token_form.token(class="form-control", placeholder="") }} + {{ otp_token_form.token(class="form-control", autofocus="true") }} {{ render_field_errors(otp_token_form.token) }} diff --git a/app/dashboard/templates/dashboard/mfa_cancel.html b/app/dashboard/templates/dashboard/mfa_cancel.html index 7d1fbdfb..64b1894c 100644 --- a/app/dashboard/templates/dashboard/mfa_cancel.html +++ b/app/dashboard/templates/dashboard/mfa_cancel.html @@ -18,7 +18,7 @@
Token
The 6-digit number displayed on your phone.
- {{ otp_token_form.token(class="form-control", placeholder="") }} + {{ otp_token_form.token(class="form-control", autofocus="true") }} {{ render_field_errors(otp_token_form.token) }}