Differential D20008 Diff 47808 src/applications/settings/panel/PhabricatorContactNumbersSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorContactNumbersSettingsPanel.php
| Show All 13 Lines | final class PhabricatorContactNumbersSettingsPanel | ||||
| public function getPanelMenuIcon() { | public function getPanelMenuIcon() { | ||||
| return 'fa-mobile'; | return 'fa-mobile'; | ||||
| } | } | ||||
| public function getPanelGroupKey() { | public function getPanelGroupKey() { | ||||
| return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | ||||
| } | } | ||||
| public function isMultiFactorEnrollmentPanel() { | |||||
| return true; | |||||
| } | |||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $user = $this->getUser(); | $user = $this->getUser(); | ||||
| $viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
| $numbers = id(new PhabricatorAuthContactNumberQuery()) | $numbers = id(new PhabricatorAuthContactNumberQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withObjectPHIDs(array($user->getPHID())) | ->withObjectPHIDs(array($user->getPHID())) | ||||
| ->execute(); | ->execute(); | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||