Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Experian/IDAuth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ sub _get_result_proveid {
qw(BOEMatch PEPMatch OFACMatch CIFASMatch);

if (@matches) {
if ( grep { /^(OFACMatch|CIFASMatch)$/ } @matches ) {
if ( grep { /^(BOEMatch|PEPMatch|OFACMatch|CIFASMatch)$/ } @matches ) {

# OFAC and CIFAS are hard failures and need manual verification
# BOEMatch PEPMatch OFAC and CIFAS are hard failures and need manual verification
delete $decision->{age_verified};
$decision->{deny} = 1;
}
Expand Down
8 changes: 4 additions & 4 deletions t/decision.t
Original file line number Diff line number Diff line change
Expand Up @@ -2376,19 +2376,19 @@ eq_or_diff(
eq_or_diff(
examine($age_only_2),
{
age_verified => 1,
deny => 1,
matches => ['PEPMatch'],
},
" but if PEP is set, then age_verified only"
" if PEP is set, then fail verification"
);

eq_or_diff(
examine($age_only_3),
{
age_verified => 1,
deny => 1,
matches => ['BOEMatch'],
},
" if BOEMatch is set, then age_verified only"
" if BOEMatch is set, then fail verification"
);

eq_or_diff(
Expand Down