Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthFactorProvider.php
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | public function processAddFactorForm( | ||||
| $config = $factor->processAddFactorForm($this, $form, $request, $user); | $config = $factor->processAddFactorForm($this, $form, $request, $user); | ||||
| if ($config) { | if ($config) { | ||||
| $config->setFactorProviderPHID($this->getPHID()); | $config->setFactorProviderPHID($this->getPHID()); | ||||
| } | } | ||||
| return $config; | return $config; | ||||
| } | } | ||||
| public function newSortVector() { | |||||
| $factor = $this->getFactor(); | |||||
| return id(new PhutilSortVector()) | |||||
| ->addInt($factor->getFactorOrder()) | |||||
| ->addInt($this->getID()); | |||||
| } | |||||
| /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
| public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
| return new PhabricatorAuthFactorProviderEditor(); | return new PhabricatorAuthFactorProviderEditor(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||