summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/webauthn_registrations_controller.rb
blob: ef3144f6f8ca355a98fabd5b79d6d31ca2d46675 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class Profiles::WebauthnRegistrationsController < Profiles::ApplicationController
  feature_category :system_access

  def destroy
    Webauthn::DestroyService.new(current_user, current_user, params[:id]).execute

    redirect_to profile_two_factor_auth_path, status: :found, notice: _("Successfully deleted WebAuthn device.")
  end
end