dossier_controller#new uses info from FC if any
This commit is contained in:
parent
a181210651
commit
707e8a0004
2 changed files with 12 additions and 0 deletions
|
@ -223,6 +223,10 @@ module Users
|
|||
dossier = Dossier.create!(procedure: procedure, user: current_user, state: Dossier.states.fetch(:brouillon))
|
||||
|
||||
if dossier.procedure.for_individual
|
||||
if current_user.france_connect_information.present?
|
||||
dossier.update_with_france_connect(current_user.france_connect_information)
|
||||
end
|
||||
|
||||
redirect_to identite_dossier_path(dossier)
|
||||
else
|
||||
redirect_to siret_dossier_path(id: dossier.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue