Skip to content

LG-7305 Make sure ThreatMetrix failure results in disabled account#6817

Merged
stevegsa merged 7 commits intomainfrom
stevegsa-tmx-profile
Aug 26, 2022
Merged

LG-7305 Make sure ThreatMetrix failure results in disabled account#6817
stevegsa merged 7 commits intomainfrom
stevegsa-tmx-profile

Conversation

@stevegsa
Copy link
Contributor

@stevegsa stevegsa commented Aug 23, 2022

Why: To prevent fraudulent verified profiles by using the lexisnexis threatmetrix API saving those profiles that have not passed threatmetrix in a pending state threatmetrix_review_pending so they can be reviewed and potentially enabled by the fraud team.
How: Threatmetrix review_status must be 'pass' if threatmetrix is enabled and required via new feature flag lexisnexis_threatmetrix_required_to_verify. Otherwise the profile will be created in a pending state. If threatmetrix is enabled but not required the threatmetrix backend calls will run and store the results but it will NOT disable the verified profile. Follows from these prs: #6806

@stevegsa stevegsa marked this pull request as ready for review August 23, 2022 05:09
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

:in_person_verification_pending
elsif threatmetrix_failed_and_needs_review?
:threatmetrix_review_pending
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to register my vague discomfort at relying on this function to implicitly return nil. It works of course, and if it's a common pattern in the codebase I don't think it needs to be changed. Just a note that I consider it somewhat nonobvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants