blob: 2ee0e9fe960d3f1ae7a483f779bae13e784ee1c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class Profiles::U2fRegistrationsController < Profiles::ApplicationController
feature_category :system_access
def destroy
u2f_registration = current_user.u2f_registrations.find(params[:id])
u2f_registration.destroy
redirect_to profile_two_factor_auth_path, status: :found, notice: _("Successfully deleted U2F device.")
end
end
|