fix: fix missing path helper (#705)

This commit is contained in:
Kartikey Chauhan 2025-12-15 02:14:42 +05:30 committed by GitHub
parent 9d5b2690de
commit b72d257470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ class SessionsController < ApplicationController
if params[:error].present?
Rails.logger.error "HCA OAuth error: #{params[:error]}"
Sentry.capture_message("HCA OAuth error: #{params[:error]}")
redirect_to redirect_path, alert: "Failed to authenticate with Hack Club Auth. Error ID: #{Sentry.last_event_id}"
redirect_to root_path, alert: "Failed to authenticate with Hack Club Auth. Error ID: #{Sentry.last_event_id}"
return
end