Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorAuthFactor.php
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | abstract class PhabricatorAuthFactor extends Phobject { | ||||
| public function canCreateNewConfiguration(PhabricatorUser $user) { | public function canCreateNewConfiguration(PhabricatorUser $user) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function getConfigurationCreateDescription(PhabricatorUser $user) { | public function getConfigurationCreateDescription(PhabricatorUser $user) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| /** | |||||
| * Is this a factor which depends on the user's contact number? | |||||
| * | |||||
| * If a user has a "contact number" factor configured, they can not modify | |||||
| * or switch their primary contact number. | |||||
| * | |||||
| * @return bool True if this factor should lock contact numbers. | |||||
| */ | |||||
| public function isContactNumberFactor() { | |||||
| return false; | |||||
| } | |||||
| abstract public function getEnrollDescription( | abstract public function getEnrollDescription( | ||||
| PhabricatorAuthFactorProvider $provider, | PhabricatorAuthFactorProvider $provider, | ||||
| PhabricatorUser $user); | PhabricatorUser $user); | ||||
| public function getEnrollButtonText( | public function getEnrollButtonText( | ||||
| PhabricatorAuthFactorProvider $provider, | PhabricatorAuthFactorProvider $provider, | ||||
| PhabricatorUser $user) { | PhabricatorUser $user) { | ||||
| return pht('Continue'); | return pht('Continue'); | ||||
| ▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines | |||||