]> cat aescling's git repositories - mastodon.git/commitdiff
Ensure pack is set when rendering OTP prompt
authorThibaut Girka <thib@sitedethib.com>
Thu, 10 Oct 2019 14:50:09 +0000 (16:50 +0200)
committerThibG <thib@sitedethib.com>
Thu, 10 Oct 2019 15:08:00 +0000 (17:08 +0200)
Fixes #1230

app/controllers/auth/sessions_controller.rb

index efde02ac2a92f806192a88deecfaac0d21c39ff2..eac9dde6f28bb27357285feb3842bff0c07839fd 100644 (file)
@@ -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