feat: redirect to stored location after pro-connect connection

This commit is contained in:
Mathieu HIREL 2024-11-28 13:34:15 +01:00
parent 8ba2c5c5ff
commit e60b2bbb0e
No known key found for this signature in database

View file

@ -54,7 +54,7 @@ class AgentConnect::AgentController < ApplicationController
sign_in(:user, instructeur.user) sign_in(:user, instructeur.user)
redirect_to instructeur_procedures_path redirect_to stored_location_for(:user) || instructeur_procedures_path
rescue Rack::OAuth2::Client::Error => e rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message Rails.logger.error e.message