Welcome to mirror list, hosted at ThFree Co, Russian Federation.

u2f_registrations_controller.rb « profiles « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e3d7737f44a258ce52b60554a7306ac04a929853 (plain)
1
2
3
4
5
6
7
class Profiles::U2fRegistrationsController < Profiles::ApplicationController
  def destroy
    u2f_registration = current_user.u2f_registrations.find(params[:id])
    u2f_registration.destroy
    redirect_to profile_two_factor_auth_path, status: 302, notice: "Successfully deleted U2F device."
  end
end