Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Turn autocomplete off on ldap password form

Oliver Güntherc4e5ce68ea2a
diff --git a/app/views/ldap_auth_sources/_form.html.erb b/app/views/ldap_auth_sources/_form.html.erb
index d31ecd2ac2f..830fdd051ce 100644
--- a/app/views/ldap_auth_sources/_form.html.erb
+++ b/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>