diff --git a/app/views/auth/two_factor_authentication.haml b/app/views/auth/two_factor_authentication.haml index a3fc7052..9c821b90 100644 --- a/app/views/auth/two_factor_authentication.haml +++ b/app/views/auth/two_factor_authentication.haml @@ -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" diff --git a/app/views/settings/security/_totp_setup.haml b/app/views/settings/security/_totp_setup.haml index 5b64f010..41ce93d2 100644 --- a/app/views/settings/security/_totp_setup.haml +++ b/app/views/settings/security/_totp_setup.haml @@ -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