Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/factor/PhabricatorSMSAuthFactor.php
| Show All 22 Lines | final class PhabricatorSMSAuthFactor | ||||
| } | } | ||||
| public function getFactorOrder() { | public function getFactorOrder() { | ||||
| // Sort this factor toward the end of the list because SMS is relatively | // Sort this factor toward the end of the list because SMS is relatively | ||||
| // weak. | // weak. | ||||
| return 2000; | return 2000; | ||||
| } | } | ||||
| public function isContactNumberFactor() { | |||||
| return true; | |||||
| } | |||||
| public function canCreateNewProvider() { | public function canCreateNewProvider() { | ||||
| return $this->isSMSMailerConfigured(); | return $this->isSMSMailerConfigured(); | ||||
| } | } | ||||
| public function getProviderCreateDescription() { | public function getProviderCreateDescription() { | ||||
| $messages = array(); | $messages = array(); | ||||
| if (!$this->isSMSMailerConfigured()) { | if (!$this->isSMSMailerConfigured()) { | ||||
| ▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines | |||||