blob: 94d1567f33e3e862ad8b250f9ccd6a685143919e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
module Settings
module TwoFactorAuthentication
class RecoveryCodesController < BaseController
def create
@recovery_codes = current_user.generate_otp_backup_codes!
current_user.save!
flash[:notice] = I18n.t('two_factor_authentication.recovery_codes_regenerated')
render :index
end
end
end
end
|