diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-03 18:02:55 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-03 18:02:55 +0000 |
commit | 12af657728cc3a7c614bdefea1f46ebbe71ea875 (patch) | |
tree | e493acc47bf03a4326cfd0b1e630deacf28ffd1c | |
parent | aac5b78d08a6b8381193bcf6a0f0f272d1ca54c8 (diff) | |
parent | ec1191a110166bb95e7aea1020ad7f3fb5ccf3d8 (diff) | |
download | gitlab-ce-12af657728cc3a7c614bdefea1f46ebbe71ea875.tar.gz |
Merge branch '2fa-no-autocomplete' into 'master'
Disable 2FA field autocomplete, resolves #18021.
Self-explanatory. Fixes #18021.
cc: @jschatz1 @jacobvosmaer-gitlab
See merge request !4385
-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" |