Differential D20024 Diff 47821 src/applications/transactions/editengine/PhabricatorEditEngineMFAEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngineMFAEngine.php
| Show All 28 Lines | abstract class PhabricatorEditEngineMFAEngine | ||||
| } | } | ||||
| final public static function newEngineForObject( | final public static function newEngineForObject( | ||||
| PhabricatorEditEngineMFAInterface $object) { | PhabricatorEditEngineMFAInterface $object) { | ||||
| return $object->newEditEngineMFAEngine() | return $object->newEditEngineMFAEngine() | ||||
| ->setObject($object); | ->setObject($object); | ||||
| } | } | ||||
| abstract public function shouldRequireMFA(); | /** | ||||
| * Do edits to this object REQUIRE that the user submit MFA? | |||||
| * | |||||
| * This is a strict requirement: users will need to add MFA to their accounts | |||||
| * if they don't already have it. | |||||
| * | |||||
| * @return bool True to strictly require MFA. | |||||
| */ | |||||
| public function shouldRequireMFA() { | |||||
| return false; | |||||
| } | |||||
| /** | |||||
| * Should edits to this object prompt for MFA if it's available? | |||||
| * | |||||
| * This is advisory: users without MFA on their accounts will be able to | |||||
| * perform edits without being required to add MFA. | |||||
| * | |||||
| * @return bool True to prompt for MFA if available. | |||||
| */ | |||||
| public function shouldTryMFA() { | |||||
| return false; | |||||
| } | |||||
| } | } | ||||