Allow MFA enrollment before email verification
Summary: Depends on D18791. Ref T13024. This clears up another initialization order issue, where an unverified address could prevent MFA enrollment. Test Plan: Configured both verification required and MFA required, clicked "Add Factor", got a dialog for the workflow. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13024 Differential Revision: https://secure.phabricator.com/D18792
This commit is contained in:
@@ -15,6 +15,12 @@ final class PhabricatorAuthNeedsMultiFactorController
|
||||
return false;
|
||||
}
|
||||
|
||||
public function shouldRequireEmailVerification() {
|
||||
// Users who haven't verified their email addresses yet can still enroll
|
||||
// in MFA.
|
||||
return false;
|
||||
}
|
||||
|
||||
public function handleRequest(AphrontRequest $request) {
|
||||
$viewer = $this->getViewer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user