Page MenuHomePhabricator

D18895.diff
No OneTemporary

D18895.diff

diff --git a/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php b/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
--- a/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
+++ b/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php
@@ -34,6 +34,10 @@
'name' => 'everywhere',
'help' => pht('Revoke from all credential owners.'),
),
+ array(
+ 'name' => 'force',
+ 'help' => pht('Revoke credentials without prompting.'),
+ ),
));
}
@@ -41,6 +45,7 @@
$viewer = PhabricatorUser::getOmnipotentUser();
$all_types = PhabricatorAuthRevoker::getAllRevokers();
+ $is_force = $args->getArg('force');
$type = $args->getArg('type');
$is_everything = $args->getArg('everything');
@@ -97,7 +102,7 @@
}
}
- if ($is_everywhere) {
+ if ($is_everywhere && !$is_force) {
echo id(new PhutilConsoleBlock())
->addParagraph(
pht(

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 20, 6:31 AM (3 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712686
Default Alt Text
D18895.diff (1 KB)

Event Timeline