]> cat aescling's git repositories - mastodon.git/commitdiff
glitch-soc theme engine fixes for the challenges controller
authorThibaut Girka <thib@sitedethib.com>
Mon, 30 Sep 2019 11:37:13 +0000 (13:37 +0200)
committerThibaut Girka <thib@sitedethib.com>
Mon, 30 Sep 2019 11:37:13 +0000 (13:37 +0200)
app/controllers/auth/challenges_controller.rb

index 060944240a221ae05facc18d4b25bc58470b1edb..41827b21c147c2e47a48faf56a5aaf9055752362 100644 (file)
@@ -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