Homestyx hydra
Diffusion hydra 29b4fad94173

Get rid of "throwResult()" for control flow in MFA factors

Description

Get rid of "throwResult()" for control flow in MFA factors

Summary: Depends on D20034. Ref T13222. This is just cleanup -- I thought we'd have like two of these, but we ended up having a whole lot in Duo and a decent number in SMS. Just let factors return a result explicitly if they can make a decision early. I think using instanceof for control flow is a lesser evil than using catch, on the balance.

Test Plan: grep, went through enroll/gate flows on SMS and Duo.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13222

Differential Revision: https://secure.phabricator.com/D20035

Details

Provenance
epriestleyAuthored on Jan 25 2019, 1:02 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:bce44385e1e3: Add more factor details to the Settings factor list
Branches
Unknown
Tags
Unknown

Event Timeline