Fix request with prompt=none when not logged in

This commit is contained in:
theworldbright 2015-10-03 21:50:23 -07:00
parent fd467cd42b
commit b3b9b39690

View file

@ -194,7 +194,7 @@ module Api
def redirect_prompt_error_display(error, error_description)
redirect_params_hash = {error: error, error_description: error_description, state: params[:state]}
redirect_fragment = redirect_params_hash.compact.map {|key, value| key.to_s + "=" + value }.join("&")
redirect_to "#{params[:redirect_uri]}##{redirect_fragment}"
redirect_to params[:redirect_uri] + "?" + redirect_fragment
end
end
end