about summary refs log tree commit diff
path: root/app/controllers/oauth
diff options
context:
space:
mode:
authorGô Shoemake <marrus-sh@users.noreply.github.com>2017-12-11 19:34:19 -0800
committerGitHub <noreply@github.com>2017-12-11 19:34:19 -0800
commit04eaa1943f002865f8a0234e19c6ea4cc1d3bb6a (patch)
tree0c680fe1a842e44e67df95f3a0b02fb63a2b69e2 /app/controllers/oauth
parent8aa527434c1f022199b4de576bbb2e31a123782f (diff)
parent0a52e376484500279edded7121e3b23953d37b1b (diff)
Merge pull request #262 from chriswmartin/fix-oauth-pack
Add missing set pack to authorizations_controller
Diffstat (limited to 'app/controllers/oauth')
-rw-r--r--app/controllers/oauth/authorizations_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/oauth/authorizations_controller.rb b/app/controllers/oauth/authorizations_controller.rb
index e9cdf9fa8..eb977510b 100644
--- a/app/controllers/oauth/authorizations_controller.rb
+++ b/app/controllers/oauth/authorizations_controller.rb
@@ -5,6 +5,7 @@ class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
 
   before_action :store_current_location
   before_action :authenticate_resource_owner!
+  before_action :set_pack
 
   include Localized
 
@@ -13,4 +14,8 @@ class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
   def store_current_location
     store_location_for(:user, request.url)
   end
+
+  def set_pack
+    use_pack 'auth'
+  end
 end