Commit 775b11e9328f5f558b7291169bd98ec52d687747
1 parent
653c0de3
Exists in
master
and in
1 other branch
Fill password field for issue trackers
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/apps/_issue_tracker_fields.html.haml
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | - tracker::Fields.each do |field, field_info| | 18 | - tracker::Fields.each do |field, field_info| |
19 | = w.label field, field_info[:label] || field.to_s.titleize | 19 | = w.label field, field_info[:label] || field.to_s.titleize |
20 | - field_type = field == :password ? :password_field : :text_field | 20 | - field_type = field == :password ? :password_field : :text_field |
21 | - = w.send field_type, field, :placeholder => field_info[:placeholder] | 21 | + = w.send field_type, field, :placeholder => field_info[:placeholder], :value => w.object.send(field) |
22 | 22 | ||
23 | .image_preloader | 23 | .image_preloader |
24 | - (IssueTracker.subclasses.map{|t| t::Label } << 'none').each do |tracker| | 24 | - (IssueTracker.subclasses.map{|t| t::Label } << 'none').each do |tracker| |
app/views/users/_fields.html.haml
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | 27 | ||
28 | .required | 28 | .required |
29 | = f.label :password | 29 | = f.label :password |
30 | - = f.password_field :password | 30 | + = f.password_field :password, :autocomplete => "off" |
31 | 31 | ||
32 | .required | 32 | .required |
33 | = f.label :password_confirmation | 33 | = f.label :password_confirmation |