debian-mirror-gitlab/app/controllers/profiles/webauthn_registrations_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
402 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
class Profiles::WebauthnRegistrationsController < Profiles::ApplicationController
2023-05-27 22:25:52 +05:30
feature_category :system_access
2021-01-03 14:25:43 +05:30
2020-11-24 15:15:51 +05:30
def destroy
webauthn_registration = current_user.webauthn_registrations.find(params[:id])
webauthn_registration.destroy
redirect_to profile_two_factor_auth_path, status: :found, notice: _("Successfully deleted WebAuthn device.")
end
end