Skip to content

Commit

Permalink
Revert "DRY out AuthorizationsController#render_success"
Browse files Browse the repository at this point in the history
This reverts commit f0d48d6.
  • Loading branch information
kmayer committed Jul 27, 2024
1 parent f0d48d6 commit ade5a8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ User-visible changes worth mentioning.
## main

Add your entry here.
- [#????] DRY out AuthorizationsController#render_success

- [#1715] Fix token introspection invalid request reason
- [#1714] Fix `Doorkeeper::AccessToken.find_or_create_for` with empty scopes which raises NoMethodError
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/doorkeeper/authorizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def destroy

def render_success
if skip_authorization? || can_authorize_response?
create
redirect_or_render(authorize_response)
elsif Doorkeeper.configuration.api_only
render json: pre_auth
else
Expand Down

0 comments on commit ade5a8e

Please sign in to comment.