Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- # frozen_string_literal: true
-
- module Settings
- module TwoFactorAuthentication
- class RecoveryCodesController < BaseController
- layout 'admin'
-
- before_action :authenticate_user!
-
- skip_before_action :require_functional!
-
- def create
- @recovery_codes = current_user.generate_otp_backup_codes!
- current_user.save!
- flash.now[:notice] = I18n.t('two_factor_authentication.recovery_codes_regenerated')
- render :index
- end
- end
- end
- end
|