Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896786
PhabricatorAuthManagementListMFAProvidersWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
764 B
Referenced Files
None
Subscribers
None
PhabricatorAuthManagementListMFAProvidersWorkflow.php
View Options
<?php
final
class
PhabricatorAuthManagementListMFAProvidersWorkflow
extends
PhabricatorAuthManagementWorkflow
{
protected
function
didConstruct
(
)
{
$this
->
setName
(
'list-mfa-providers'
)
->
setExamples
(
'**list-mfa-providerrs**'
)
->
setSynopsis
(
pht
(
'List available multi-factor authentication providers.'
)
)
->
setArguments
(
array
(
)
)
;
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$viewer
=
$this
->
getViewer
(
)
;
$providers
=
id
(
new
PhabricatorAuthFactorProviderQuery
(
)
)
->
setViewer
(
$viewer
)
->
execute
(
)
;
foreach
(
$providers
as
$provider
)
{
echo
tsprintf
(
"%s\t%s\n"
,
$provider
->
getPHID
(
)
,
$provider
->
getDisplayName
(
)
)
;
}
return
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 23:34 (6 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129955
Default Alt Text
PhabricatorAuthManagementListMFAProvidersWorkflow.php (764 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment