Skip to content

Commit

Permalink
delete unnecessary support for dookeeper < v5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
linhdangduy committed Mar 20, 2021
1 parent 5b5b469 commit 0b681cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/doorkeeper/openid_connect/oauth/pre_authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ module PreAuthorization
attr_reader :nonce

def initialize(server, attrs = {}, resource_owner = nil)
if (Doorkeeper::VERSION::MAJOR >= 5 && Doorkeeper::VERSION::MINOR >= 4) ||
Doorkeeper::VERSION::MAJOR >= 6
super
else
super(server, attrs)
end
super
@nonce = attrs[:nonce]
end

Expand Down

0 comments on commit 0b681cb

Please sign in to comment.