to be sure, delete possible email_merge_token if correct password merge

This commit is contained in:
simon lehericey 2024-01-11 11:21:09 +01:00
parent e12dbe7aad
commit 586e4ed613

View file

@ -58,6 +58,7 @@ class FranceConnect::ParticulierController < ApplicationController
else else
@fci.update(user: user) @fci.update(user: user)
@fci.delete_merge_token! @fci.delete_merge_token!
@fci.delete_email_merge_token!
flash.notice = t('france_connect.particulier.flash.connection_done', application_name: APPLICATION_NAME) flash.notice = t('france_connect.particulier.flash.connection_done', application_name: APPLICATION_NAME)
connect_france_connect_particulier(user) connect_france_connect_particulier(user)