summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/u2f_registrations_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles/u2f_registrations_controller.rb')
-rw-r--r--app/controllers/profiles/u2f_registrations_controller.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/profiles/u2f_registrations_controller.rb b/app/controllers/profiles/u2f_registrations_controller.rb
deleted file mode 100644
index 866c4dee6e2..00000000000
--- a/app/controllers/profiles/u2f_registrations_controller.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# frozen_string_literal: true
-
-class Profiles::U2fRegistrationsController < Profiles::ApplicationController
- def destroy
- u2f_registration = current_user.u2f_registrations.find(params[:id])
- u2f_registration.destroy
- redirect_to profile_two_factor_auth_path, status: 302, notice: _("Successfully deleted U2F device.")
- end
-end