app/controllers/openstax/accounts/sessions_controller.rb in openstax_accounts-7.2.0 vs app/controllers/openstax/accounts/sessions_controller.rb in openstax_accounts-7.3.0
- old
+ new
@@ -8,10 +8,13 @@
else
if configuration.is_return_to_url_approved?(params[:return_to])
store_url url: params[:return_to], key: :accounts_return_to, strategies: [:session]
end
store_fallback key: :accounts_return_to, strategies: [:session]
- redirect_to openstax_login_path
+
+ forwardable_params =
+ params.slice(*configuration.forwardable_login_param_keys.map(&:to_s))
+ redirect_to openstax_login_path(forwardable_params)
end
end
def callback
handle_with(