Differential D20574 Diff 49089 src/applications/auth/engineextension/PhabricatorAuthMFAEditEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/engineextension/PhabricatorAuthMFAEditEngineExtension.php
Show All 32 Lines | public function buildCustomEditFields( | ||||
$viewer = $engine->getViewer(); | $viewer = $engine->getViewer(); | ||||
$mfa_field = id(new PhabricatorApplyEditField()) | $mfa_field = id(new PhabricatorApplyEditField()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setKey(self::FIELDKEY) | ->setKey(self::FIELDKEY) | ||||
->setLabel(pht('MFA')) | ->setLabel(pht('MFA')) | ||||
->setIsFormField(false) | ->setIsFormField(false) | ||||
->setCommentActionLabel(pht('Sign With MFA')) | ->setCommentActionLabel(pht('Sign With MFA')) | ||||
->setCanApplyWithoutEditCapability(true) | |||||
->setCommentActionOrder(12000) | ->setCommentActionOrder(12000) | ||||
->setActionDescription( | ->setActionDescription( | ||||
pht('You will be prompted to provide MFA when you submit.')) | pht('You will be prompted to provide MFA when you submit.')) | ||||
->setDescription(pht('Sign this transaction group with MFA.')) | ->setDescription(pht('Sign this transaction group with MFA.')) | ||||
->setTransactionType($mfa_type); | ->setTransactionType($mfa_type); | ||||
return array( | return array( | ||||
$mfa_field, | $mfa_field, | ||||
); | ); | ||||
} | } | ||||
} | } |