use numeric keyboard for otp code inputs

This commit is contained in:
Alex Turchyn
2026-07-29 01:05:53 +03:00
committed by Pete Matsyburka
parent b8ab7190d2
commit 34d0e00910
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="form-control">
<%= label_tag 'user[otp_attempt]', t('two_factor_code_from_authenticator_app'), class: 'label' %>
<%= text_field_tag 'user[otp_attempt]', nil, autofocus: true, autocomplete: 'off', placeholder: 'XXX-XXX', required: true, class: 'base-input' %>
<%= text_field_tag 'user[otp_attempt]', nil, autofocus: true, autocomplete: 'off', inputmode: 'numeric', placeholder: 'XXXXXX', required: true, class: 'base-input' %>
</div>