diff options
author | Finn Behrens <me@kloenk.dev> | 2022-01-22 10:00:43 +0100 |
---|---|---|
committer | Finn Behrens <me@kloenk.dev> | 2022-01-22 10:00:43 +0100 |
commit | 832828961921866a5f0ef9d13b421748f3262f7f (patch) | |
tree | 4c32b836e90e4752f9bb890bc6711ceae6cafe84 /lib/pleroma/web/templates/o_auth/mfa/totp.html.eex | |
parent | 6ffe43af70cf69b4bfe1fff778685e907b5ef988 (diff) |
Add autocompelete values suggested by Apple
Link: https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element
Diffstat (limited to 'lib/pleroma/web/templates/o_auth/mfa/totp.html.eex')
-rw-r--r-- | lib/pleroma/web/templates/o_auth/mfa/totp.html.eex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/templates/o_auth/mfa/totp.html.eex b/lib/pleroma/web/templates/o_auth/mfa/totp.html.eex index 29ea7c5fb..27600253c 100644 --- a/lib/pleroma/web/templates/o_auth/mfa/totp.html.eex +++ b/lib/pleroma/web/templates/o_auth/mfa/totp.html.eex @@ -10,7 +10,7 @@ <%= form_for @conn, Routes.mfa_verify_path(@conn, :verify), [as: "mfa"], fn f -> %> <div class="input"> <%= label f, :code, "Authentication code" %> - <%= text_input f, :code, [autocomplete: false, autocorrect: "off", autocapitalize: "off", autofocus: true, pattern: "[0-9]*", spellcheck: false] %> + <%= text_input f, :code, [autocomplete: "one-time-code", autocorrect: "off", autocapitalize: "off", autofocus: true, pattern: "[0-9]*", spellcheck: false] %> <%= hidden_input f, :mfa_token, value: @mfa_token %> <%= hidden_input f, :state, value: @state %> <%= hidden_input f, :redirect_uri, value: @redirect_uri %> |