about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-22 11:48:45 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-22 11:48:45 -0600
commit4a069aded1672abddb6170e6abadcd3295db67c2 (patch)
tree6753606e6ee4c82842f2fee8211a7fcac33610c4 /app/controllers
parentc8e099e9c2f6e516359deca839d5a5c00e5d7eb9 (diff)
re-add missing theming to sign-in page
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/auth/confirmations_controller.rb6
-rw-r--r--app/controllers/auth/sessions_controller.rb2
2 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/auth/confirmations_controller.rb b/app/controllers/auth/confirmations_controller.rb
index 0d7c6e7c2..c09c0ceab 100644
--- a/app/controllers/auth/confirmations_controller.rb
+++ b/app/controllers/auth/confirmations_controller.rb
@@ -1,14 +1,20 @@
+
 # frozen_string_literal: true
 
 class Auth::ConfirmationsController < Devise::ConfirmationsController
   layout 'auth'
 
   before_action :set_body_classes
+  before_action :set_pack
 
   skip_before_action :require_functional!
 
   private
 
+  def set_pack
+    use_pack 'auth'
+  end
+
   def set_body_classes
     @body_classes = 'lighter'
   end
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index 43618b15a..0789cc058 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -10,9 +10,11 @@ class Auth::SessionsController < Devise::SessionsController
 
   prepend_before_action :authenticate_with_two_factor, if: :two_factor_enabled?, only: [:create]
   prepend_before_action :switch_user
+  prepend_before_action :set_pack
   before_action :set_instance_presenter, only: [:new]
   before_action :set_body_classes
 
+
   def new
     Devise.omniauth_configs.each do |provider, config|
       return redirect_to(omniauth_authorize_path(resource_name, provider)) if config.strategy.redirect_at_sign_in