about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/sign_in_token_authentication_concern.rb1
-rw-r--r--app/controllers/concerns/two_factor_authentication_concern.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/concerns/sign_in_token_authentication_concern.rb b/app/controllers/concerns/sign_in_token_authentication_concern.rb
index 91f813acc..f5178930b 100644
--- a/app/controllers/concerns/sign_in_token_authentication_concern.rb
+++ b/app/controllers/concerns/sign_in_token_authentication_concern.rb
@@ -44,6 +44,7 @@ module SignInTokenAuthenticationConcern
 
     set_locale do
       session[:attempt_user_id] = user.id
+      use_pack 'auth'
       @body_classes = 'lighter'
       render :sign_in_token
     end
diff --git a/app/controllers/concerns/two_factor_authentication_concern.rb b/app/controllers/concerns/two_factor_authentication_concern.rb
index 8a2a86a02..6b043a804 100644
--- a/app/controllers/concerns/two_factor_authentication_concern.rb
+++ b/app/controllers/concerns/two_factor_authentication_concern.rb
@@ -73,6 +73,7 @@ module TwoFactorAuthenticationConcern
   def prompt_for_two_factor(user)
     set_locale do
       session[:attempt_user_id] = user.id
+      use_pack 'auth'
       @body_classes = 'lighter'
       @webauthn_enabled = user.webauthn_enabled?
       @scheme_type = if user.webauthn_enabled? && user_params[:otp_attempt].blank?