summaryrefslogtreecommitdiff
path: root/app/views/devise
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-05-31 11:57:34 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-06-01 12:45:53 -0600
commitec1191a110166bb95e7aea1020ad7f3fb5ccf3d8 (patch)
tree93cbbc4ea88c6ecc0988328f5c9cba0b362c7ec3 /app/views/devise
parente9bb895b5ac639bcb4166b23b796566f0320741a (diff)
downloadgitlab-ce-ec1191a110166bb95e7aea1020ad7f3fb5ccf3d8.tar.gz
Disable 2FA field autocomplete, resolves #18021.
Diffstat (limited to 'app/views/devise')
-rw-r--r--app/views/devise/sessions/two_factor.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/sessions/two_factor.html.haml b/app/views/devise/sessions/two_factor.html.haml
index 8c6a1552a53..fd5937a45ce 100644
--- a/app/views/devise/sessions/two_factor.html.haml
+++ b/app/views/devise/sessions/two_factor.html.haml
@@ -5,7 +5,7 @@
.login-body
= form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
= f.hidden_field :remember_me, value: params[resource_name][:remember_me]
- = f.text_field :otp_attempt, class: 'form-control', placeholder: 'Two-factor Authentication code', required: true, autofocus: true
+ = f.text_field :otp_attempt, class: 'form-control', placeholder: 'Two-factor Authentication code', required: true, autofocus: true, autocomplete: 'off'
%p.help-block.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.
.prepend-top-20
= f.submit "Verify code", class: "btn btn-save"