Fix #1165 - before_action was called before protect_from_forgery
This commit is contained in:
parent
a872f2f4c6
commit
4b621188ad
4 changed files with 21 additions and 11 deletions
|
@ -1,13 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
|
||||
include Localized
|
||||
|
||||
skip_before_action :authenticate_resource_owner!
|
||||
|
||||
before_action :store_current_location
|
||||
before_action :authenticate_resource_owner!
|
||||
|
||||
include Localized
|
||||
|
||||
private
|
||||
|
||||
def store_current_location
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
|
||||
include Localized
|
||||
|
||||
skip_before_action :authenticate_resource_owner!
|
||||
|
||||
before_action :store_current_location
|
||||
before_action :authenticate_resource_owner!
|
||||
|
||||
include Localized
|
||||
|
||||
private
|
||||
|
||||
def store_current_location
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue