Skip to content
Snippets Groups Projects
Commit a100db5e authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

filter out duplicated contacts

parent 6cd1ac44
No related branches found
No related tags found
Loading
......@@ -7,6 +7,7 @@ use CGI;
use English qw(-no_match_vars);
use Template;
use Log::Any::Adapter;
use List::MoreUtils qw(uniq);
use IdPAccountManager::Data::TestAccount;
use IdPAccountManager::Data::AuthenticationToken;
......@@ -277,7 +278,7 @@ sub req_select_sp {
# complete persistent object
$provider->displayname($sp->{display_name});
$provider->contacts(map { $_->{EmailAddress} } @{$sp->{contacts}})
$provider->contacts(uniq map { $_->{EmailAddress} } @{$sp->{contacts}})
if $sp->{contacts};
# save in DB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment