blob: 81b1dd6f71038ef88ba06d96872c1556b61db051 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
class Profiles::WebauthnRegistrationsController < Profiles::ApplicationController
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
|