feat: redirect to stored location after pro-connect connection
This commit is contained in:
parent
8ba2c5c5ff
commit
e60b2bbb0e
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class AgentConnect::AgentController < ApplicationController
|
|||
|
||||
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
|
||||
Rails.logger.error e.message
|
||||
|
|
Loading…
Reference in a new issue