Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71662095
PhabricatorAuthManagementListFactorsWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 12, 12:13
Size
681 B
Mime Type
text/x-php
Expires
Sun, Jul 14, 12:13 (2 d)
Engine
blob
Format
Raw Data
Handle
18970670
Attached To
rPH Phabricator
PhabricatorAuthManagementListFactorsWorkflow.php
View Options
<?php
final
class
PhabricatorAuthManagementListFactorsWorkflow
extends
PhabricatorAuthManagementWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'list-factors'
)
->
setExamples
(
'**list-factors**'
)
->
setSynopsis
(
pht
(
'List available multi-factor authentication factors.'
))
->
setArguments
(
array
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$factors
=
PhabricatorAuthFactor
::
getAllFactors
();
$console
=
PhutilConsole
::
getConsole
();
foreach
(
$factors
as
$factor
)
{
$console
->
writeOut
(
"%s
\t
%s
\n
"
,
$factor
->
getFactorKey
(),
$factor
->
getFactorName
());
}
return
0
;
}
}
Event Timeline
Log In to Comment