X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dcad29dad0d29e22ffa0c34a8d9b43cbf5d64f12..77d2fcf9dd80a57e2748ff4a57fb1d603562b9e9:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 9972ca3ee..80402f677 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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]) @@ -170,7 +172,7 @@ class UserController < ApplicationController end def api_details - render :text => @user.to_xml.to_s + render :text => @user.to_xml.to_s, :content_type => "text/xml" end def api_gpx_files @@ -178,7 +180,7 @@ class UserController < ApplicationController @user.traces.each do |trace| doc.root << trace.to_xml_node() if trace.public? or trace.user == @user end - render :text => doc.to_s + render :text => doc.to_s, :content_type => "text/xml" end def view