Turn autocomplete off on ldap password form

pull/7840/head
Oliver Günther 5 years ago
parent fe9f8835b7
commit c4e5ce68ea
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 11
      app/views/ldap_auth_sources/_form.html.erb

@ -76,10 +76,13 @@ See docs/COPYRIGHT.rdoc for more details.
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%= t(:label_details) %></legend>
<div class="form--field"><%= f.text_field 'account', container_class: '-middle' %></div>
<div class="form--field"><%= f.password_field 'account_password',
label: AuthSource.human_attribute_name(:password),
placeholder: ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('●'*15)),
container_class: '-middle' %></div>
<div class="form--field">
<%= f.password_field 'account_password',
label: AuthSource.human_attribute_name(:password),
placeholder: ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('●'*15)),
autocomplete: 'off',
container_class: '-middle' %>
</div>
<div class="form--field"><%= f.text_field 'base_dn', size: 60, container_class: '-wide' %></div>
<div class="form--field"><%= f.check_box 'onthefly_register', label: AuthSource.human_attribute_name(:onthefly) %></div>
</fieldset>

Loading…
Cancel
Save