summaryrefslogtreecommitdiffstats
path: root/app/views/account/twofa_confirm.html.erb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-12-08 06:18:26 +0000
committerGo MAEDA <maeda@farend.jp>2024-12-08 06:18:26 +0000
commitab4bca896ed7402a053cca9eedc8dd32184d97a4 (patch)
tree45fcfe0f553f3961042886d5c24f75202ecd1015 /app/views/account/twofa_confirm.html.erb
parent80b6bc0fd856fd66a157c6a7098ad6337eda1b47 (diff)
downloadredmine-ab4bca896ed7402a053cca9eedc8dd32184d97a4.tar.gz
redmine-ab4bca896ed7402a053cca9eedc8dd32184d97a4.zip
Enable browser autocomplete for 2FA input fields (#41927).
Contributed by Thomas Butz (user:otbutz). git-svn-id: https://svn.redmine.org/redmine/trunk@23360 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account/twofa_confirm.html.erb')
-rw-r--r--app/views/account/twofa_confirm.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/account/twofa_confirm.html.erb b/app/views/account/twofa_confirm.html.erb
index 5cf3b3dda..aaf6d3ecb 100644
--- a/app/views/account/twofa_confirm.html.erb
+++ b/app/views/account/twofa_confirm.html.erb
@@ -12,7 +12,7 @@
<%=l 'twofa_label_code' -%>
<%= link_to l('twofa_resend_code'), { controller: 'account', action: 'twofa_resend' }, method: :post, class: 'lost_password' if @twofa_view[:resendable] -%>
</label>
- <%= text_field_tag :twofa_code, nil, tabindex: '1', autocomplete: 'off', autofocus: true -%>
+ <%= text_field_tag :twofa_code, nil, tabindex: '1', autocomplete: 'one-time-code', autofocus: true -%>
<%= submit_tag l(:button_login), tabindex: '2', id: 'login-submit', name: :submit_otp -%>
<% end %>