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.rb7
1 files changed, 7 insertions, 0 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 e591e9502..bfb103620 100644
--- a/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
+++ b/app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
@@ -6,6 +6,7 @@ module Settings
       layout 'admin'
 
       before_action :authenticate_user!
+      before_action :set_body_classes
 
       def create
         @recovery_codes = current_user.generate_otp_backup_codes!
@@ -13,6 +14,12 @@ module Settings
         flash[:notice] = I18n.t('two_factor_authentication.recovery_codes_regenerated')
         render :index
       end
+
+      private
+
+      def set_body_classes
+        @body_classes = 'admin'
+      end
     end
   end
 end