Skip to content

Commit

Permalink
fix(sessions/destroy): use current_authority helper to obtain logout URL
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jun 8, 2022
1 parent 0ba9424 commit 41b889d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/auth/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def destroy

# Only whitelisted URLs can redirect externally
redirect_continue(params.permit(:continue)[:continue] || "/") do
uri = authority.logout_url
uri = current_authority.logout_url
uri = URI.decode_www_form_component(uri.split("continue=", 2)[-1]) if uri.include?("continue=")
uri
end
Expand Down

0 comments on commit 41b889d

Please sign in to comment.