Thomas Swift

Running a West Coast Offense since ‘81

Securing your log files when using acts as authenticated

April 4th, 2007 · No Comments

I came across the Filtering Sensitive Logs Railscast the other day and Ryan explains how to filter out password information out of your development and production log files, something i needed to do for my site.

He uses a simple application with only one password field, where I am using acts as authenticated which uses an additional parameter for password confirmation.

So just edit the application controller by adding this somewhere near the end.

filter_parameter_logging :password, :password_confirmation

That takes care of the signup form password from being logged.

Tags: rails · iden.tify.us

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment