Differential D9431 Diff 22523 src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
$handles = id(new PhabricatorHandleQuery()) | $handles = id(new PhabricatorHandleQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withPHIDs(mpull($factors, 'getUserPHID')) | ->withPHIDs(mpull($factors, 'getUserPHID')) | ||||
->execute(); | ->execute(); | ||||
$console = PhutilConsole::getConsole(); | $console = PhutilConsole::getConsole(); | ||||
$console->writeOut("%s\n\n", pht("These auth factors will be stripped:")); | $console->writeOut("%s\n\n", pht('These auth factors will be stripped:')); | ||||
foreach ($factors as $factor) { | foreach ($factors as $factor) { | ||||
$impl = $factor->getImplementation(); | $impl = $factor->getImplementation(); | ||||
$console->writeOut( | $console->writeOut( | ||||
" %s\t%s\t%s\n", | " %s\t%s\t%s\n", | ||||
$handles[$factor->getUserPHID()]->getName(), | $handles[$factor->getUserPHID()]->getName(), | ||||
$factor->getFactorKey(), | $factor->getFactorKey(), | ||||
($impl | ($impl | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |