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: c02fe85c3cc2d7c791e8536f684dadd565f0e0b9 (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, notice: "Successfully deleted U2F device."
  end
end