Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorTokensSettingsPanel.php
| <?php | <?php | ||||
| final class PhabricatorTokensSettingsPanel extends PhabricatorSettingsPanel { | final class PhabricatorTokensSettingsPanel extends PhabricatorSettingsPanel { | ||||
| public function getPanelKey() { | public function getPanelKey() { | ||||
| return 'tokens'; | return 'tokens'; | ||||
| } | } | ||||
| public function getPanelName() { | public function getPanelName() { | ||||
| return pht('Temporary Tokens'); | return pht('Temporary Tokens'); | ||||
| } | } | ||||
| public function getPanelGroup() { | public function getPanelGroupKey() { | ||||
| return pht('Sessions and Logs'); | return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; | ||||
| } | |||||
| public function isEnabled() { | |||||
| return true; | |||||
| } | } | ||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
| $tokens = id(new PhabricatorAuthTemporaryTokenQuery()) | $tokens = id(new PhabricatorAuthTemporaryTokenQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withTokenResources(array($viewer->getPHID())) | ->withTokenResources(array($viewer->getPHID())) | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||