authorizations_controller.rb 340 Bytes
Newer Older
1 2
# frozen_string_literal: true

3
class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
4 5
  skip_before_action :authenticate_resource_owner!

6
  before_action :store_current_location
7
  before_action :authenticate_resource_owner!
8 9 10 11 12 13 14

  private

  def store_current_location
    store_location_for(:user, request.url)
  end
end