about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-09-30 13:37:13 +0200
committerThibaut Girka <thib@sitedethib.com>2019-09-30 13:37:13 +0200
commit7fd54178d0ca7b2589fc44e24174b505801dddfb (patch)
tree8c44b049d333cbbef26989c46d214f37d0a8c44b /app/controllers
parent16ff7c5627c12a0c9658e9d2fac7c48002e1b788 (diff)
glitch-soc theme engine fixes for the challenges controller
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/auth/challenges_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/auth/challenges_controller.rb b/app/controllers/auth/challenges_controller.rb
index 060944240..41827b21c 100644
--- a/app/controllers/auth/challenges_controller.rb
+++ b/app/controllers/auth/challenges_controller.rb
@@ -5,6 +5,7 @@ class Auth::ChallengesController < ApplicationController
 
   layout 'auth'
 
+  before_action :set_pack
   before_action :authenticate_user!
 
   skip_before_action :require_functional!
@@ -19,4 +20,10 @@ class Auth::ChallengesController < ApplicationController
       render_challenge
     end
   end
+
+  private
+
+  def set_pack
+    use_pack 'auth'
+  end
 end