3 final class PhabricatorAuthManagementUnlockWorkflow
4 extends PhabricatorAuthManagementWorkflow
{
6 protected function didConstruct() {
9 ->setExamples('**unlock**')
12 'Unlock the authentication provider config, to make it possible '.
13 'to edit the config using the web UI. Make sure to do '.
14 '**bin/auth lock** when done editing the configuration.'));
17 public function execute(PhutilArgumentParser
$args) {
18 $console = PhutilConsole
::getConsole();
20 $key = 'auth.lock-config';
21 $config_entry = PhabricatorConfigEntry
::loadConfigEntry($key);
22 $config_entry->setValue(false);
24 // If the entry has been deleted, resurrect it.
25 $config_entry->setIsDeleted(0);
27 $config_entry->save();
31 pht('Unlocked the authentication provider configuration.'));