about summary refs log tree commit diff
path: root/app/controllers/auth
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-10-10 16:50:09 +0200
committerThibG <thib@sitedethib.com>2019-10-10 17:08:00 +0200
commitbc0399d54dde2ad058a8382fc3edbe5506a92985 (patch)
treebd58a7971affbd3fdc7afe4345696a8f8f413a0d /app/controllers/auth
parentd2f7b8685cfd0ec9b69af505b56c791d9b5f1c82 (diff)
Ensure pack is set when rendering OTP prompt
Fixes #1230
Diffstat (limited to 'app/controllers/auth')
-rw-r--r--app/controllers/auth/sessions_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index efde02ac2..eac9dde6f 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -108,6 +108,7 @@ class Auth::SessionsController < Devise::SessionsController
 
   def prompt_for_two_factor(user)
     session[:otp_user_id] = user.id
+    use_pack 'auth'
     @body_classes = 'lighter'
     render :two_factor
   end