Skip to content

Commit

Permalink
updating user-settings now works again correctly. also changed applic…
Browse files Browse the repository at this point in the history
…ation-controller to set filtering for password-fields on in log-files. [#7 state:resolved]
  • Loading branch information
bakkdoor committed Sep 5, 2008
1 parent c6c9c01 commit 31e8417
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app/controllers/account_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion src/app/controllers/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31e8417

Please sign in to comment.