[#917] redirect to correct location after login with france connect

This commit is contained in:
Tanguy PATTE 2015-10-07 16:49:42 +02:00
parent ddc1052daf
commit afed93247d
6 changed files with 42 additions and 9 deletions

View file

@ -28,7 +28,8 @@ class FranceConnectController < ApplicationController
@user.save
end
redirect_to(controller: 'users/dossiers', action: :index)
redirect_to stored_location_for(current_user) || signed_in_root_path(current_user)
end
rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message