diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-05-31 11:57:34 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-01 12:45:53 -0600 |
commit | ec1191a110166bb95e7aea1020ad7f3fb5ccf3d8 (patch) | |
tree | 93cbbc4ea88c6ecc0988328f5c9cba0b362c7ec3 /app/views/devise | |
parent | e9bb895b5ac639bcb4166b23b796566f0320741a (diff) | |
download | gitlab-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.haml | 2 |
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" |