From c4e5ce68ea2ae90284e4e1edbb6224ed4862cb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 31 Oct 2019 07:31:41 +0100 Subject: [PATCH] Turn autocomplete off on ldap password form --- app/views/ldap_auth_sources/_form.html.erb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/ldap_auth_sources/_form.html.erb b/app/views/ldap_auth_sources/_form.html.erb index d31ecd2ac2..830fdd051c 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.
<%= t(:label_details) %>
<%= f.text_field 'account', container_class: '-middle' %>
-
<%= 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' %>
+
+ <%= 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' %> +
<%= f.text_field 'base_dn', size: 60, container_class: '-wide' %>
<%= f.check_box 'onthefly_register', label: AuthSource.human_attribute_name(:onthefly) %>