add login_with_france_connect boolean at the FC connection
This commit is contained in:
parent
6db8efb078
commit
3d38f6fcdb
6 changed files with 57 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue