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

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

12 lines
395 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2016-09-13 17:45:13 +05:30
class Profiles::U2fRegistrationsController < Profiles::ApplicationController
2021-01-03 14:25:43 +05:30
feature_category :authentication_and_authorization
2016-09-13 17:45:13 +05:30
def destroy
u2f_registration = current_user.u2f_registrations.find(params[:id])
u2f_registration.destroy
2019-12-26 22:10:19 +05:30
redirect_to profile_two_factor_auth_path, status: :found, notice: _("Successfully deleted U2F device.")
2016-09-13 17:45:13 +05:30
end
end