From 31e84179ac61284c0f89a8b3f0ce0f499b0f620b Mon Sep 17 00:00:00 2001 From: Christopher Bertels Date: Fri, 5 Sep 2008 16:36:50 +0200 Subject: [PATCH] updating user-settings now works again correctly. also changed application-controller to set filtering for password-fields on in log-files. [#7 state:resolved] --- src/app/controllers/account_controller.rb | 5 +++++ src/app/controllers/application.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/controllers/account_controller.rb b/src/app/controllers/account_controller.rb index f28c6d7..b05c0ae 100644 --- a/src/app/controllers/account_controller.rb +++ b/src/app/controllers/account_controller.rb @@ -33,6 +33,11 @@ def update respond_to do |format| if @user.update_attributes(params[:user]) + language = params[:user][:language] + if GLoc.valid_language?(language) + @user.language = language + @user.save + end flash[:notice] = (l :account_successful_update_notice) format.html { redirect_to :action => "index" } format.xml { head :ok } diff --git a/src/app/controllers/application.rb b/src/app/controllers/application.rb index f6fde6e..3bbe5b2 100644 --- a/src/app/controllers/application.rb +++ b/src/app/controllers/application.rb @@ -19,7 +19,7 @@ class ApplicationController < ActionController::Base # See ActionController::Base for details # Uncomment this to filter the contents of submitted sensitive data parameters # from your application log (in this case, all fields with names like "password"). - # filter_parameter_logging :password + filter_parameter_logging :password def set_user_language