Hassan Schroeder wrote in post #1156593: > On Tue, Sep 2, 2014 at 5:26 AM, Ronald Fischer <li...@ruby-forum.com> > wrote: >> In my Rails 4 application, when I have a form including a password, i.e. > >> I don't like the fact that the password is shown plain text in the log >> file, and would like to disable this. > >> How can I do this correctly? > > Hint: look at your initializers.
Thanks, that was it! Just for the record: The default content of config/initializers/filter_parameter_logging.rb (which was probably generated automatically with my rails application) is Rails.application.config.filter_parameters += [:password] Since my password field is named differently, I had to add it to this list: Rails.application.config.filter_parameters += [:password,:admpwd] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/32e0e3f806a494b8524ab1b20fbb13ae%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.