Revision 19abc86f
Added by Shlomi Zadok over 9 years ago
app/helpers/layout_helper.rb | ||
---|---|---|
end
|
||
|
||
def password_f(f, attr, options = {})
|
||
password_field_tag(:fakepassword, nil, :style => 'display: none') +
|
||
# The actual field.
|
||
field(f, attr, options) do
|
||
options[:autocomplete] ||= "off"
|
||
options[:placeholder] ||= password_placeholder(f.object)
|
Also available in: Unified diff
Fixes #5468 - prevent Chrome from autofilling passwords