]> git.openstreetmap.org Git - rails.git/commitdiff
Don't include passwords in the request log.
authorTom Hughes <tom@compton.nu>
Thu, 19 Jul 2007 08:57:03 +0000 (08:57 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 19 Jul 2007 08:57:03 +0000 (08:57 +0000)
app/controllers/user_controller.rb

index 5eba0e8373a0392b2078d104adb5998a98ad78d7..80402f6776e7b873901da2583b29e47b990c829c 100644 (file)
@@ -5,6 +5,8 @@ class UserController < ApplicationController
   before_filter :authorize_web, :only => [:account, :go_public, :view, :diary, :make_friend]
   before_filter :require_user, :only => [:set_home, :account, :go_public, :make_friend]
 
+  filter_parameter_logging :password, :pass_crypt, :pass_crypt_confirmation
+
   def save
     @title = 'create account'
     @user = User.new(params[:user])