2016-08-16 12:18:36 -04:00
|
|
|
class Profiles::U2fRegistrationsController < Profiles::ApplicationController
|
|
|
|
def destroy
|
|
|
|
u2f_registration = current_user.u2f_registrations.find(params[:id])
|
|
|
|
u2f_registration.destroy
|
2017-06-06 18:45:16 -04:00
|
|
|
redirect_to profile_two_factor_auth_path, status: 302, notice: "Successfully deleted U2F device."
|
2016-08-16 12:18:36 -04:00
|
|
|
end
|
|
|
|
end
|