##// END OF EJS Templates
Fixed: svn or ldap password can be found in clear text in the html source in editing mode....
Jean-Philippe Lang -
r929:457c9a8e727d
parent child
Show More
@@ -62,7 +62,10 module RepositoriesHelper
62 content_tag('p', form.text_field(:url, :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) +
62 content_tag('p', form.text_field(:url, :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) +
63 '<br />(http://, https://, svn://, file:///)') +
63 '<br />(http://, https://, svn://, file:///)') +
64 content_tag('p', form.text_field(:login, :size => 30)) +
64 content_tag('p', form.text_field(:login, :size => 30)) +
65 content_tag('p', form.password_field(:password, :size => 30))
65 content_tag('p', form.password_field(:password, :size => 30, :name => 'ignore',
66 :value => ((repository.new_record? || repository.password.blank?) ? '' : ('x'*15)),
67 :onfocus => "this.value=''; this.name='repository[password]';",
68 :onchange => "this.name='repository[password]';"))
66 end
69 end
67
70
68 def darcs_field_tags(form, repository)
71 def darcs_field_tags(form, repository)
@@ -15,7 +15,10
15 <%= text_field 'auth_source', 'account' %></p>
15 <%= text_field 'auth_source', 'account' %></p>
16
16
17 <p><label for="auth_source_account_password"><%=l(:field_password)%></label>
17 <p><label for="auth_source_account_password"><%=l(:field_password)%></label>
18 <%= password_field 'auth_source', 'account_password' %></p>
18 <%= password_field 'auth_source', 'account_password', :name => 'ignore',
19 :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
20 :onfocus => "this.value=''; this.name='auth_source[account_password]';",
21 :onchange => "this.name='auth_source[account_password]';" %></p>
19
22
20 <p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
23 <p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
21 <%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
24 <%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
General Comments 0
You need to be logged in to leave comments. Login now