Skip to content

Commit

Permalink
remove password from csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed May 3, 2019
1 parent e2bd137 commit fecc3ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ doc/dependencies*
!.env.example
!.env.travis
docker-compose.override.yml
.ruby-version
.ruby-version
.vscode
2 changes: 1 addition & 1 deletion app/controllers/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def index
}
render json: ProviderSerializer.new(@providers, options).serialized_json, status: :ok
end
header = %w(name provider_id year contact_name contact_address is_active description website region country_code logo_url focus_area organisation_type memmber_type address, post_code, city, state, twitter_handle, ror_id, role_name password joined created updated deleted_at)
header = %w(name provider_id year contact_name contact_address is_active description website region country_code logo_url focus_area organisation_type memmber_type address post_code city state twitter_handle ror_id role_name joined created updated deleted_at)
format.csv { render request.format.to_sym => response.records.to_a, header: header }
end
rescue Elasticsearch::Transport::Transport::Errors::BadRequest => exception
Expand Down
1 change: 0 additions & 1 deletion app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def csv
twitter_handle: twitter_handle,
ror_id: ror_id,
role_name: role_name,
password: password,
joined: joined,
created: created,
updated: updated,
Expand Down

0 comments on commit fecc3ad

Please sign in to comment.