Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthFactorConfig.php
| Show All 13 Lines | return array( | ||||
| 'properties' => self::SERIALIZATION_JSON, | 'properties' => self::SERIALIZATION_JSON, | ||||
| ), | ), | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function generatePHID() { | public function generatePHID() { | ||||
| return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
| PhabricatorAuthPHIDTypeAuthFactor::TYPECONST); | PhabricatorAuthAuthFactorPHIDType::TYPECONST); | ||||
| } | } | ||||
| public function getImplementation() { | public function getImplementation() { | ||||
| return idx(PhabricatorAuthFactor::getAllFactors(), $this->getFactorKey()); | return idx(PhabricatorAuthFactor::getAllFactors(), $this->getFactorKey()); | ||||
| } | } | ||||
| public function requireImplementation() { | public function requireImplementation() { | ||||
| $impl = $this->getImplementation(); | $impl = $this->getImplementation(); | ||||
| Show All 12 Lines | |||||