summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/gpg_keys_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles/gpg_keys_controller.rb')
-rw-r--r--app/controllers/profiles/gpg_keys_controller.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/controllers/profiles/gpg_keys_controller.rb b/app/controllers/profiles/gpg_keys_controller.rb
index f1d4f9b2cc0..7f04927f517 100644
--- a/app/controllers/profiles/gpg_keys_controller.rb
+++ b/app/controllers/profiles/gpg_keys_controller.rb
@@ -2,7 +2,6 @@
class Profiles::GpgKeysController < Profiles::ApplicationController
before_action :set_gpg_key, only: [:destroy, :revoke]
- skip_before_action :authenticate_user!, only: [:get_keys]
feature_category :users
@@ -40,24 +39,6 @@ class Profiles::GpgKeysController < Profiles::ApplicationController
end
end
- # Get all gpg keys of a user(params[:username]) in a text format
- def get_keys
- if params[:username].present?
- begin
- user = UserFinder.new(params[:username]).find_by_username
- if user.present?
- render plain: user.gpg_keys.select(&:verified?).map(&:key).join("\n")
- else
- render_404
- end
- rescue => e
- render html: e.message
- end
- else
- render_404
- end
- end
-
private
def gpg_key_params