Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorTokensSettingsPanel.php
| Show All 17 Lines | public function isEnabled() { | ||||
| return true; | 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) | ||||
| ->withObjectPHIDs(array($viewer->getPHID())) | ->withTokenResources(array($viewer->getPHID())) | ||||
| ->execute(); | ->execute(); | ||||
| $rows = array(); | $rows = array(); | ||||
| foreach ($tokens as $token) { | foreach ($tokens as $token) { | ||||
| if ($token->isRevocable()) { | if ($token->isRevocable()) { | ||||
| $button = javelin_tag( | $button = javelin_tag( | ||||
| 'a', | 'a', | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||