Differential D19992 Diff 47751 src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/mfa/PhabricatorAuthFactorProviderEditController.php
| Show All 17 Lines | if (!$id) { | ||||
| $factor = idx($map, $factor_key); | $factor = idx($map, $factor_key); | ||||
| if (!$factor) { | if (!$factor) { | ||||
| return $this->buildFactorSelectionResponse(); | return $this->buildFactorSelectionResponse(); | ||||
| } | } | ||||
| $engine | $engine | ||||
| ->addContextParameter('providerFactorKey', $factor_key) | ->addContextParameter('providerFactorKey', $factor_key) | ||||
| ->setProviderFactor($factor); | ->setProviderFactor($factor); | ||||
| } | } | ||||
| return $engine->buildResponse(); | return $engine->buildResponse(); | ||||
| } | } | ||||
| private function buildFactorSelectionResponse() { | private function buildFactorSelectionResponse() { | ||||
| $request = $this->getRequest(); | $request = $this->getRequest(); | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| Show All 31 Lines | |||||