about summary refs log tree commit diff
path: root/app/views/auth
diff options
context:
space:
mode:
authorChris Rose <offbyone@github.com>2022-11-06 18:57:16 -0800
committerGitHub <noreply@github.com>2022-11-07 03:57:16 +0100
commita70e2cd649cbd82d534f03202fb3078a4ae1af1d (patch)
treee5be5928597ef7e5a64feef6886c9ef91fdee32d /app/views/auth
parent4b7f32a2a668b7068ede7ac8eb2ac087883ba213 (diff)
Tag the OTP field with autocomplete for password managers (#19946)
This is modeled on #19833, and based on the attribute values documented
in https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element?language=objc
Diffstat (limited to 'app/views/auth')
-rw-r--r--app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml
index ab2d48c0a..82f957527 100644
--- a/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml
+++ b/app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml
@@ -5,7 +5,7 @@
   %p.hint.authentication-hint= t('simple_form.hints.sessions.otp')
 
   .fields-group
-    = f.input :otp_attempt, type: :number, wrapper: :with_label, label: t('simple_form.labels.defaults.otp_attempt'), input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'off' }, autofocus: true
+    = f.input :otp_attempt, type: :number, wrapper: :with_label, label: t('simple_form.labels.defaults.otp_attempt'), input_html: { 'aria-label' => t('simple_form.labels.defaults.otp_attempt'), :autocomplete => 'one-time-code' }, autofocus: true
 
   .actions
     = f.button :button, t('auth.login'), type: :submit