Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893316
PhabricatorAuthManagementLockWorkflow.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
837 B
Referenced Files
None
Subscribers
None
PhabricatorAuthManagementLockWorkflow.php
View Options
<?php
final
class
PhabricatorAuthManagementLockWorkflow
extends
PhabricatorAuthManagementWorkflow
{
protected
function
didConstruct
(
)
{
$this
->
setName
(
'lock'
)
->
setExamples
(
'**lock**'
)
->
setSynopsis
(
pht
(
'Lock authentication provider config, to prevent changes to '
.
'the config without doing **bin/auth unlock**.'
)
)
;
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$console
=
PhutilConsole
::
getConsole
(
)
;
$key
=
'auth.lock-config'
;
$config_entry
=
PhabricatorConfigEntry
::
loadConfigEntry
(
$key
)
;
$config_entry
->
setValue
(
true
)
;
// If the entry has been deleted, resurrect it.
$config_entry
->
setIsDeleted
(
0
)
;
$config_entry
->
save
(
)
;
echo
tsprintf
(
"%s\n"
,
pht
(
'Locked the authentication provider configuration.'
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:12 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127315
Default Alt Text
PhabricatorAuthManagementLockWorkflow.php (837 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment