From a9e40a3d80435431f689b8d19005dd77a8f50224 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 22 Oct 2016 19:38:47 +0200 Subject: Adding OAuth access scopes, fixing OAuth authorization UI, adding rate limiting to the API --- app/controllers/oauth/authorizations_controller.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/controllers/oauth/authorizations_controller.rb (limited to 'app/controllers/oauth') diff --git a/app/controllers/oauth/authorizations_controller.rb b/app/controllers/oauth/authorizations_controller.rb new file mode 100644 index 000000000..f5f05814e --- /dev/null +++ b/app/controllers/oauth/authorizations_controller.rb @@ -0,0 +1,9 @@ +class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController + before_action :store_current_location + + private + + def store_current_location + store_location_for(:user, request.url) + end +end -- cgit