about summary refs log tree commit diff
path: root/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb')
-rw-r--r--app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb b/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
index 0c4f5bff7..6ec53224d 100644
--- a/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
+++ b/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
@@ -5,13 +5,10 @@ module Settings
     class RecoveryCodesController < BaseController
       include ChallengableConcern
 
-      layout 'admin'
+      skip_before_action :require_functional!
 
-      before_action :authenticate_user!
       before_action :require_challenge!, on: :create
 
-      skip_before_action :require_functional!
-
       def create
         @recovery_codes = current_user.generate_otp_backup_codes!
         current_user.save!