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

8 lines
304 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
class Profiles::U2fRegistrationsController < Profiles::ApplicationController
def destroy
u2f_registration = current_user.u2f_registrations.find(params[:id])
u2f_registration.destroy
2017-09-10 17:25:29 +05:30
redirect_to profile_two_factor_auth_path, status: 302, notice: "Successfully deleted U2F device."
2016-09-13 17:45:13 +05:30
end
end