Use numeric input mode in TOTP entry

This commit is contained in:
Karina Kwiatek 2022-06-27 23:32:38 +02:00 committed by Karina Kwiatek
parent 5a07c7a8ce
commit 9dedf447a6
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
.card-body
%h1.mb-3.mt-0= t(".heading")
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
= f.text_field :otp_attempt, autofocus: true, label: t(".otp_attempt")
= f.text_field :otp_attempt, autofocus: true, inputmode: :numeric, label: t(".otp_attempt")
= f.submit t("voc.login"), class: "btn btn-primary mt-3 mb-3"
= render "shared/links"

View File

@ -37,5 +37,5 @@
%li.list-inline-item
%a{ href: "https://play.google.com/store/apps/details?id=com.azure.authenticator" }= t(".source.google_play")
%p= t(".setup_qr", app_name: APP_CONFIG['site_name'])
= f.text_field :otp_validation, class: "totp-setup__code-field", label: t(".otp_validation"), autofocus: true
= f.text_field :otp_validation, class: "totp-setup__code-field", inputmode: :numeric, label: t(".otp_validation"), autofocus: true
= f.primary