mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
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
This commit is contained in:
parent
80b6bc0fd8
commit
ab4bca896e
@ -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 %>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div class="tabular">
|
||||
<p>
|
||||
<label for="twofa_code"><%=l 'twofa_label_code' -%></label>
|
||||
<%= text_field_tag :twofa_code, nil, autocomplete: 'off' -%>
|
||||
<%= text_field_tag :twofa_code, nil, autocomplete: 'one-time-code' -%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<%= render partial: "twofa/#{@twofa_view[:scheme_name]}/new", locals: { twofa_view: @twofa_view } -%>
|
||||
<p>
|
||||
<label for="twofa_code"><%=l 'twofa_label_code' -%></label>
|
||||
<%= text_field_tag :twofa_code, nil, autocomplete: 'off', autofocus: true -%>
|
||||
<%= text_field_tag :twofa_code, nil, autocomplete: 'one-time-code', autofocus: true -%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user