HomePhorge

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, 10:02 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPbce44385e1e3: Add more factor details to the Settings factor list
Branches
Unknown
Tags
Unknown

Event Timeline