Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547913
PhabricatorAuthManagementUnlockWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
926 B
Referenced Files
None
Subscribers
None
PhabricatorAuthManagementUnlockWorkflow.php
View Options
<?php
final
class
PhabricatorAuthManagementUnlockWorkflow
extends
PhabricatorAuthManagementWorkflow
{
protected
function
didConstruct
()
{
$this
->
setName
(
'unlock'
)
->
setExamples
(
'**unlock**'
)
->
setSynopsis
(
pht
(
'Unlock the authentication provider config, to make it possible '
.
'to edit the config using the web UI. Make sure to do '
.
'**bin/auth lock** when done editing the configuration.'
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
();
$key
=
'auth.lock-config'
;
$config_entry
=
PhabricatorConfigEntry
::
loadConfigEntry
(
$key
);
$config_entry
->
setValue
(
false
);
// If the entry has been deleted, resurrect it.
$config_entry
->
setIsDeleted
(
0
);
$config_entry
->
save
();
echo
tsprintf
(
"%s
\n
"
,
pht
(
'Unlocked the authentication provider configuration.'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:40 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113393
Default Alt Text
PhabricatorAuthManagementUnlockWorkflow.php (926 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment