-
Notifications
You must be signed in to change notification settings - Fork 166
LG-12445: Attention to Barcode does not override a failed portrait match #10075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,8 @@ def initialize(http_response, config, liveness_checking_enabled = false) | |
| # document type | ||
| # bar code attention | ||
| def successful_result? | ||
| (all_passed? || attention_with_barcode?) && id_type_supported? | ||
| doc_auth_success? && | ||
| (@liveness_checking_enabled ? selfie_passed? : true) | ||
|
||
| end | ||
|
|
||
| # all checks from document perspectives, without considering selfie: | ||
|
|
@@ -193,15 +194,6 @@ def basic_logging_info | |
| } | ||
| end | ||
|
|
||
| # Status of all checks from Vendor perspective | ||
| def all_passed? | ||
| transaction_status_passed? && | ||
| true_id_product.present? && | ||
| product_status_passed? && | ||
| doc_auth_result_passed? && | ||
| (@liveness_checking_enabled ? selfie_passed? : true) | ||
| end | ||
|
|
||
| def selfie_result | ||
| portrait_match_results&.dig(:FaceMatchResult) | ||
| end | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.