add login_with_france_connect boolean at the FC connection

This commit is contained in:
Xavier J 2015-10-07 11:24:07 +02:00
parent 6db8efb078
commit 3d38f6fcdb
6 changed files with 57 additions and 37 deletions

View file

@ -23,6 +23,11 @@ class FranceConnectController < ApplicationController
sign_in @user
if current_user == @user
@user.login_with_france_connect = true
@user.save
end
redirect_to(controller: 'users/dossiers', action: :index)
end
rescue Rack::OAuth2::Client::Error => e